<?xml version="1.0"?><?xml-stylesheet type="text/xsl" href="http://www.codeplex.com/rss.xsl"?><rss version="2.0"><channel><title>SubSonic: All your database are belong to us</title><link>http://www.codeplex.com/subsonic/Project/ProjectRss.aspx</link><description>Ruby On Rails is propelling a new wave of programming - one that drives &amp;#34;Convention Over Configuration&amp;#34;. This simple, elegant approach is attracting many developers who find the intricacies and com...</description><item><title>Commented Issue: In Memory Filtering: Add support for integer comparisons, incl GreaterThan et al</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17987</link><description>I&amp;#39;ve added support in the new Collection.Filter&amp;#40;&amp;#41; method for comparing integer types.&lt;br /&gt;&lt;br /&gt;Newly supported Comparisons are&amp;#58;&lt;br /&gt;SubSonic.GreaterThan&lt;br /&gt;.GreaterOrEquals&lt;br /&gt;.LessThan&lt;br /&gt;.LessOrEquals&lt;br /&gt;.NotEquals&lt;br /&gt;&lt;br /&gt;Property and where values are tested to see if they can be cast using Int32.TryParse, and the filter is performed only if true for both.&lt;br /&gt;&lt;br /&gt;Works well for me in initial testing, feedback is welcome. This is implemented in the C&amp;#35; template, perhaps someone can pitch in for VB.&lt;br /&gt;Comments: ** Comment from web user: MWSherman ** &lt;p&gt;By the way, this builds on&amp;#58; http&amp;#58;&amp;#47;&amp;#47;www.codeplex.com&amp;#47;subsonic&amp;#47;WorkItem&amp;#47;View.aspx&amp;#63;WorkItemId&amp;#61;10036&lt;/p&gt;</description><author>MWSherman</author><pubDate>Thu, 21 Aug 2008 04:06:15 GMT</pubDate><guid isPermaLink="false">Commented Issue: In Memory Filtering: Add support for integer comparisons, incl GreaterThan et al 20080821040615A</guid></item><item><title>Created Issue: How user subsonic by different oracle user</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17988</link><description>I user the connection string at my develop environment.&lt;br /&gt;&amp;#34;Data Source&amp;#61;testserver&amp;#59;User ID&amp;#61;testuser&amp;#59;Password&amp;#61;test&amp;#59;pooling&amp;#61;true&amp;#59;&amp;#34;&lt;br /&gt;&lt;br /&gt;but at my product environment,the connection string&amp;#58;&lt;br /&gt;&amp;#34;Data Source&amp;#61;testserver&amp;#59;User ID&amp;#61;prouser&amp;#59;Password&amp;#61;test&amp;#59;pooling&amp;#61;true&amp;#59;&amp;#34;&lt;br /&gt;&lt;br /&gt;the User ID is different.&lt;br /&gt;&lt;br /&gt;so, Generated sql is &amp;#34;select &amp;#42; from testuser.tablename&amp;#34; at the product environment.&lt;br /&gt;this is error.&lt;br /&gt;&lt;br /&gt;What should I do&amp;#63;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;I generated code by &amp;#34;TestUser&amp;#34;.&lt;br /&gt;</description><author>maplye</author><pubDate>Thu, 21 Aug 2008 04:03:44 GMT</pubDate><guid isPermaLink="false">Created Issue: How user subsonic by different oracle user 20080821040344A</guid></item><item><title>Created Issue: In Memory Filtering: Add support for integer comparisons, incl GreaterThan et al</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17987</link><description>I&amp;#39;ve added support in the new Collection.Filter&amp;#40;&amp;#41; method for comparing integer types.&lt;br /&gt;&lt;br /&gt;Newly supported Comparisons are&amp;#58;&lt;br /&gt;SubSonic.GreaterThan&lt;br /&gt;.GreaterOrEquals&lt;br /&gt;.LessThan&lt;br /&gt;.LessOrEquals&lt;br /&gt;.NotEquals&lt;br /&gt;&lt;br /&gt;Property and where values are tested to see if they can be cast using Int32.TryParse, and the filter is performed only if true for both.&lt;br /&gt;&lt;br /&gt;Works well for me in initial testing, feedback is welcome. This is implemented in the C&amp;#35; template, perhaps someone can pitch in for VB.&lt;br /&gt;</description><author>MWSherman</author><pubDate>Thu, 21 Aug 2008 03:54:11 GMT</pubDate><guid isPermaLink="false">Created Issue: In Memory Filtering: Add support for integer comparisons, incl GreaterThan et al 20080821035411A</guid></item><item><title>Created Issue: SubStage Oracle Invoke Providers Error(version 2.1)</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17986</link><description>i set a oracle project in the substage,when i click the invoke providers button,i got the error&amp;#58;&lt;br /&gt;&lt;br /&gt;System.IndexOutOfRangeException&amp;#58; SPSchema&lt;br /&gt;   at System.Data.ProviderBase.FieldNameLookup.GetOrdinal&amp;#40;String fieldName&amp;#41;&lt;br /&gt;   at System.Data.OracleClient.OracleDataReader.GetOrdinal&amp;#40;String name&amp;#41;&lt;br /&gt;   at System.Data.OracleClient.OracleDataReader.get_Item&amp;#40;String name&amp;#41;&lt;br /&gt;   at SubSonic.DataService.GetSPSchemaCollection&amp;#40;String providerName&amp;#41;&lt;br /&gt;&lt;br /&gt;so, i read the GetSPSchemaCollection source code,i found &lt;br /&gt;&lt;br /&gt;&amp;#47;&amp;#47;get the params&lt;br /&gt;using&amp;#40;IDataReader rdr &amp;#61; GetSPParams&amp;#40;s, providerName&amp;#41;&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;       while&amp;#40;rdr.Read&amp;#40;&amp;#41;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;               sp.SchemaName &amp;#61; rdr&amp;#91;&amp;#34;SPSchema&amp;#34;&amp;#93;.ToString&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;               StoredProcedure.Parameter par &amp;#61; new StoredProcedure.Parameter&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;               provider.SetParameter&amp;#40;rdr, par&amp;#41;&amp;#59;&lt;br /&gt;               par.QueryParameter &amp;#61; provider.MakeParam&amp;#40;par.Name&amp;#41;&amp;#59;&lt;br /&gt;               par.DisplayName &amp;#61; Utility.GetParameterName&amp;#40;par.Name, provider&amp;#41;&amp;#59;&lt;br /&gt;               sp.Parameters.Add&amp;#40;par&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;        rdr.Close&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;the rdr datareader have not the &amp;#34;SPSchema&amp;#34; column,when the dataprovider is OracleDataProvider.&lt;br /&gt;&lt;br /&gt;the OracleDataProvider class have the GetSPParams method.&lt;br /&gt;the method execute SP_PARAM_SQL sql.&lt;br /&gt;&lt;br /&gt;private const string SP_PARAM_SQL &amp;#61;&lt;br /&gt;            &amp;#64;&amp;#34;SELECT a.object_name, a.object_type, b.position, b.in_out, &lt;br /&gt;                                    b.argument_name, b.data_type, b.char_length, b.data_precision, b.data_scale &lt;br /&gt;                                    FROM user_objects a, user_arguments b &lt;br /&gt;                                    WHERE a.object_type IN &amp;#40;&amp;#39;PROCEDURE&amp;#39;, &amp;#39;FUNCTION&amp;#39;, &amp;#39;PACKAGE&amp;#39;&amp;#41; &lt;br /&gt;                                    AND a.object_id &amp;#61; b.object_id &lt;br /&gt;                                    AND a.object_name &amp;#61; &amp;#58;objectName&amp;#34;&amp;#59;&lt;br /&gt;&lt;br /&gt;but the sql don&amp;#39;t have the &amp;#34;SPSchema&amp;#34; column.&lt;br /&gt;</description><author>maplye</author><pubDate>Thu, 21 Aug 2008 02:48:11 GMT</pubDate><guid isPermaLink="false">Created Issue: SubStage Oracle Invoke Providers Error(version 2.1) 20080821024811A</guid></item><item><title>Created Issue: AndExpression and OrExpression not overloaded for TableSchema.TableColumn</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17921</link><description>In the SqlQuery class the AndExpression and OrExpression methods are not overloaded in teh same way as And and Or.  This caused me an issue recently when I wanted to use AndExpression with a datetime type.  The standard method only accepts the column name as a string and is not able to tell that the paramater should be anything other than a string.&lt;br /&gt;&lt;br /&gt;Please can the AndExpressiona dn OrExpression be overloaded in the same way as And and Or.&lt;br /&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 18:52:14 GMT</pubDate><guid isPermaLink="false">Created Issue: AndExpression and OrExpression not overloaded for TableSchema.TableColumn 20080818065214P</guid></item><item><title>Commented Issue: controller template for update cannot tell accurately which fields are dirty (especially bit field)</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17916</link><description>It is probably easier to explain this with an example.&lt;br /&gt;&lt;br /&gt;We have a SQL server table &amp;#58;&lt;br /&gt;&lt;br /&gt;CREATE TABLE &amp;#91;PSCustomer&amp;#93;&amp;#40;&lt;br /&gt;&amp;#9;&amp;#91;CustomerID&amp;#93; &amp;#91;int&amp;#93; IDENTITY&amp;#40;1,1&amp;#41; NOT NULL,&lt;br /&gt;&amp;#9;&amp;#91;CustomerName&amp;#93; &amp;#91;nvarchar&amp;#93;&amp;#40;50&amp;#41; NULL,&lt;br /&gt;&amp;#9;&amp;#91;RequiresAuthorisedIP&amp;#93; &amp;#91;bit&amp;#93; NOT NULL&amp;#41;&lt;br /&gt;&lt;br /&gt;This creates a controller class with the following&amp;#58;&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; Updates a record, can be used with the Object Data Source&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;        &amp;#91;DataObjectMethod&amp;#40;DataObjectMethodType.Update, true&amp;#41;&amp;#93;&lt;br /&gt;&amp;#9;    public void Update&amp;#40;int CustomerID,string CustomerName,bool RequiresAuthorisedIP&amp;#41;&lt;br /&gt;&amp;#9;    &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;    PSCustomer item &amp;#61; new PSCustomer&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;        item.MarkOld&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;        item.IsLoaded &amp;#61; true&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;    &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.CustomerID &amp;#61; CustomerID&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.CustomerName &amp;#61; CustomerName&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.RequiresAuthorisedIP &amp;#61; RequiresAuthorisedIP&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;        item.Save&amp;#40;UserName&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;    &amp;#125;&lt;br /&gt;&lt;br /&gt;If I call Update&amp;#40;1,&amp;#34;Test Customer&amp;#34;,true&amp;#41;&amp;#59; The RequiresAuthorisedIP field gets updated to &amp;#39;true&amp;#39;.  If I now call Update&amp;#40;1,&amp;#34;Test Customer&amp;#34;,false&amp;#41;&amp;#59; the  RequiresAuthorisedIP remains as false.&lt;br /&gt;&lt;br /&gt;The reason is that the field  RequiresAuthorisedIP is not being seen as &amp;#39;dirty&amp;#39;.  This is because the customer record is never actually loaded so the the values of the old fields are set to the defaults for an empty record.  In our case the bit field would be a default of &amp;#39;false&amp;#39;.  This result to ignore the change to false with the resulting SQL being&amp;#58;&lt;br /&gt;UPDATE &amp;#91;PSCustomer&amp;#93; SET &amp;#91;CustomerName&amp;#93; &amp;#61; &amp;#64;CustomerName WHERE &amp;#91;CustomerID&amp;#93; &amp;#61; &amp;#64;CustomerID&amp;#59; SELECT &amp;#64;CustomerID AS id&lt;br /&gt;&lt;br /&gt;I beleive there are other issues which have been raised in the past often describing this behaviour when they the desired result is to set a field to null on update.&lt;br /&gt;Comments: ** Comment from web user: DougPickering ** &lt;p&gt;I have now gone through a lot of other items and found many talking about how update should work.  I can understand the benefits of only updating the fields that have changed in the standard context of update and can also see the reason why in the controller class the record is not first read for performance reasons.  I think there are two ways forward for the controller class, one is to provide a way to update all columns &amp;#40;bar the PK&amp;#41;, the second is to first read the record before determining which records have changed.  Perhaps even provide an update method for both.&lt;/p&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 18:46:48 GMT</pubDate><guid isPermaLink="false">Commented Issue: controller template for update cannot tell accurately which fields are dirty (especially bit field) 20080818064648P</guid></item><item><title>Commented Issue: Schema of StoredProcedure</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=10065</link><description>Subsonic should use known schema &amp;#40;owner&amp;#41; of stored procedure.&lt;br /&gt;&lt;br /&gt;Subsonic 2.0 generates SPs class with StoredProcedure definitions&amp;#58;&lt;br /&gt;&lt;br /&gt;public static StoredProcedure ProcedureName&amp;#40;string ProcedureParameter&amp;#41;&lt;br /&gt;&amp;#123;&lt;br /&gt;  SubSonic.StoredProcedure sp &amp;#61; new SubSonic.StoredProcedure&amp;#40;&amp;#34;ProcedueName&amp;#34; , DataService.GetInstance&amp;#40;&amp;#34;SqlProvider&amp;#34;&amp;#41;&amp;#41;&amp;#59;&lt;br /&gt;  sp.Command.AddParameter&amp;#40;&amp;#34;&amp;#64;ProcedureParameter&amp;#34;, ProcedureParameter, DbType.String&amp;#41;&amp;#59;&lt;br /&gt;  return sp&amp;#59;&lt;br /&gt;&amp;#125;&lt;br /&gt;&lt;br /&gt;But when the owner of this SP is not &amp;#39;dbo&amp;#39;, then te call&amp;#42; fails, because server cannot find stored procedure &amp;#39;ProcedureName&amp;#39;. The workaround is to change sp.Command.CommandSql to &amp;#39;owner&amp;#39; &amp;#43; sp.Command.CommandSql, but now, &amp;#34;part of my database belongs back to me&amp;#34; &amp;#58;-&amp;#41;&lt;br /&gt;&lt;br /&gt;&amp;#42;&amp;#41;  DataSet ds &amp;#61; SPs.ProcedureName&amp;#40;&amp;#34;TEST&amp;#34;&amp;#41;.GetDataSet&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: DougPickering ** &lt;p&gt;I think this may have been superceded in 2.1.  Please see 17917&lt;/p&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 18:40:38 GMT</pubDate><guid isPermaLink="false">Commented Issue: Schema of StoredProcedure 20080818064038P</guid></item><item><title>Commented Issue: WhereExpression("FREETEXT","COLUMN_NAME", "SearchString")</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=15277</link><description>I added a WhereExpression, AndExpression and OrExpression.&lt;br /&gt;Like - SqlQuery WhereExpression&amp;#40;string expression, string columnName, string value&amp;#41;&lt;br /&gt;&lt;br /&gt;So that you can get something like &amp;#34;WHERE &amp;#40;FREETEXT&amp;#40;COLUMN_NAME, &amp;#64;FREETEXTCOLUMN_NAME&amp;#41;&amp;#41;&amp;#34;  with Query2&lt;br /&gt;Comments: ** Comment from web user: DougPickering ** &lt;p&gt;I have modified our own copy of SubSonic to add the ability to have a &amp;#39;Contains&amp;#39; clause.  This allows our code to use the freetext index we have and get dramatic speed improvements.  I am not sure how this would be best implemented in such a way that it takes into account the other data providers needs.  I have added &amp;#39;contains&amp;#39; as a Comparison type in the same way as Equals, NotEquals etc.  I then had to modify several ares to handle the comparison type and change dataprovider to use the correct syntax.  It would be possible to substitute &amp;#39;contains&amp;#39; with &amp;#39;like&amp;#39; for other providers but I am not sure this is in the right spirit.  But then how would it be best to handle freetext&amp;#63;&lt;/p&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 16:52:33 GMT</pubDate><guid isPermaLink="false">Commented Issue: WhereExpression("FREETEXT","COLUMN_NAME", "SearchString") 20080818045233P</guid></item><item><title>Commented Issue: Error "Incorrect syntax near the keyword 'WHERE'" (patch included)</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=16626</link><description>The problem&amp;#58;&lt;br /&gt;in some circustances an incorrect sql with empty parameters is generated when one tries to update a record that was not changed.&lt;br /&gt;&lt;br /&gt;sample incorrect query generated&amp;#58;&lt;br /&gt;exec sp_executesql N&amp;#39;UPDATE &amp;#91;dbo&amp;#93;.&amp;#91;Articles&amp;#93; SET  WHERE &amp;#91;ItemID&amp;#93; &amp;#61; &amp;#64;ItemID&amp;#59; SELECT &amp;#64;ItemID AS id&amp;#39;,N&amp;#39;&amp;#64;ItemID int&amp;#39;,&amp;#64;ItemID&amp;#61;10&lt;br /&gt;&lt;br /&gt;thet returns follow error&amp;#58;&lt;br /&gt;&amp;#34;Incorrect syntax near the keyword &amp;#39;WHERE&amp;#39;&amp;#34;&lt;br /&gt;&lt;br /&gt;fix&amp;#58;&lt;br /&gt;the fix is actually really easy and needs only to add an extra check in active helper &amp;#40;ActiveHelper.cs&amp;#41;&lt;br /&gt;please include the patch on repository when you can, it should be a simple and no-problem task&lt;br /&gt;thanks&lt;br /&gt;manu&lt;br /&gt;&lt;br /&gt;patch follows&lt;br /&gt;&amp;#40;attached as well, pick the one you want, they are the same&amp;#41;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Index&amp;#58; ActiveHelper.cs&lt;br /&gt;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&amp;#61;&lt;br /&gt;--- ActiveHelper.cs&amp;#9;&amp;#40;revision 442&amp;#41;&lt;br /&gt;&amp;#43;&amp;#43;&amp;#43; ActiveHelper.cs&amp;#9;&amp;#40;working copy&amp;#41;&lt;br /&gt;&amp;#64;&amp;#64; -144,6 &amp;#43;144,11 &amp;#64;&amp;#64;&lt;br /&gt;                 if&amp;#40;&amp;#33;cmd.Parameters.Contains&amp;#40;modByParamName&amp;#41;&amp;#41;&lt;br /&gt;                     cmd.Parameters.Add&amp;#40;modByParamName, userName, DbType.String&amp;#41;&amp;#59;&lt;br /&gt;             &amp;#125;&lt;br /&gt;&amp;#43;&lt;br /&gt;&amp;#43;&amp;#9;&amp;#9;&amp;#9;&amp;#47;&amp;#47;if nothing has changed&lt;br /&gt;&amp;#43;&amp;#9;&amp;#9;&amp;#9;if &amp;#40;cmd.Parameters.Count &amp;#61;&amp;#61; 0&amp;#41;&lt;br /&gt;&amp;#43;&amp;#9;&amp;#9;&amp;#9;&amp;#9;return null&amp;#59;&lt;br /&gt;&amp;#43;&lt;br /&gt;             &amp;#47;&amp;#47;make sure to set the PKs&lt;br /&gt;             foreach&amp;#40;TableSchema.TableColumn col in BaseSchema.PrimaryKeys&amp;#41;&lt;br /&gt;                 cmd.Parameters.Add&amp;#40;col.ParameterName, item.GetColumnValue&amp;#60;object&amp;#62;&amp;#40;col.ColumnName&amp;#41;, col.DataType&amp;#41;&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: DougPickering ** &lt;p&gt;I can recreate on SQL Server 2005 using the example I give in &amp;#91;workitem&amp;#58;17917&amp;#93; and Update&amp;#40;99, null, false&amp;#41;&amp;#59;  This will try to update customer 99 but decide that null and false are both the default values and then not find any columns to update.  The result is an update statement with no &amp;#39;set value...&amp;#39;.  &lt;/p&gt;&lt;p&gt;I am in favour of the patch above to prevent the error, however it also hides the issue described in 17917.&lt;/p&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 16:29:40 GMT</pubDate><guid isPermaLink="false">Commented Issue: Error "Incorrect syntax near the keyword 'WHERE'" (patch included) 20080818042940P</guid></item><item><title>Commented Issue: Incorrect syntax near the keyword 'WHERE'.</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17866</link><description>I got the error &amp;#34;Incorrect syntax near the keyword &amp;#39;WHERE&amp;#39;.&amp;#34; while executing Update method, for example&amp;#58;&lt;br /&gt;&lt;br /&gt;DAL.Customer.Update&amp;#40;1,&amp;#34;Apple&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt;Running the profiler i found that the updated field is missing&amp;#58;&lt;br /&gt;&lt;br /&gt;UPDATE &amp;#91;dbo&amp;#93;.&amp;#91;Customer&amp;#93; SET  WHERE &amp;#91;IDCustomer&amp;#93; &amp;#61; &amp;#64;IDCustomer&amp;#59;&lt;br /&gt;Comments: ** Comment from web user: DougPickering ** &lt;p&gt;There isn&amp;#39;t enough information here for me to be certain, but this could be a symptom of the problem described in &amp;#91;workitem&amp;#58;17916&amp;#93;.  In your example, is there a default value for the column which is set to &amp;#34;Apple&amp;#34;&amp;#63;&lt;/p&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 16:15:53 GMT</pubDate><guid isPermaLink="false">Commented Issue: Incorrect syntax near the keyword 'WHERE'. 20080818041553P</guid></item><item><title>Created Issue: SQL server SPs class not generated with stored procedure schema name</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17917</link><description>When SubCommander generates the SPs class it places a stub for each stored procedure such as&amp;#58;&lt;br /&gt;&lt;br /&gt;        public static StoredProcedure CorrectMappings&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            SubSonic.StoredProcedure sp &amp;#61; new SubSonic.StoredProcedure&amp;#40;&amp;#34;CorrectMappings&amp;#34;, DataService.GetInstance&amp;#40;&amp;#34;PSystem&amp;#34;&amp;#41;, &amp;#34;&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#9;&lt;br /&gt;            return sp&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;&lt;br /&gt;If the stored procedure is in a schema other than dbo the schema name is not being placed as the last argument.  The code above should read&amp;#58;&lt;br /&gt;&lt;br /&gt;        public static StoredProcedure CorrectMappings&amp;#40;&amp;#41;&lt;br /&gt;        &amp;#123;&lt;br /&gt;            SubSonic.StoredProcedure sp &amp;#61; new SubSonic.StoredProcedure&amp;#40;&amp;#34;CorrectMappings&amp;#34;, DataService.GetInstance&amp;#40;&amp;#34;PSystem&amp;#34;&amp;#41;, &amp;#34;OtherSchema&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;        &amp;#9;&lt;br /&gt;            return sp&amp;#59;&lt;br /&gt;        &amp;#125;&lt;br /&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 16:12:26 GMT</pubDate><guid isPermaLink="false">Created Issue: SQL server SPs class not generated with stored procedure schema name 20080818041226P</guid></item><item><title>Created Issue: controller template for update cannot tell accurately which fields are dirty (especially bit field)</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17916</link><description>It is probably easier to explain this with an example.&lt;br /&gt;&lt;br /&gt;We have a SQL server table &amp;#58;&lt;br /&gt;&lt;br /&gt;CREATE TABLE &amp;#91;PSCustomer&amp;#93;&amp;#40;&lt;br /&gt;&amp;#9;&amp;#91;CustomerID&amp;#93; &amp;#91;int&amp;#93; IDENTITY&amp;#40;1,1&amp;#41; NOT NULL,&lt;br /&gt;&amp;#9;&amp;#91;CustomerName&amp;#93; &amp;#91;nvarchar&amp;#93;&amp;#40;50&amp;#41; NULL,&lt;br /&gt;&amp;#9;&amp;#91;RequiresAuthorisedIP&amp;#93; &amp;#91;bit&amp;#93; NOT NULL&amp;#41;&lt;br /&gt;&lt;br /&gt;This creates a controller class with the following&amp;#58;&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;summary&amp;#62;&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; Updates a record, can be used with the Object Data Source&lt;br /&gt;&amp;#9;    &amp;#47;&amp;#47;&amp;#47; &amp;#60;&amp;#47;summary&amp;#62;&lt;br /&gt;        &amp;#91;DataObjectMethod&amp;#40;DataObjectMethodType.Update, true&amp;#41;&amp;#93;&lt;br /&gt;&amp;#9;    public void Update&amp;#40;int CustomerID,string CustomerName,bool RequiresAuthorisedIP&amp;#41;&lt;br /&gt;&amp;#9;    &amp;#123;&lt;br /&gt;&amp;#9;&amp;#9;    PSCustomer item &amp;#61; new PSCustomer&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;        item.MarkOld&amp;#40;&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;        item.IsLoaded &amp;#61; true&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;    &lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.CustomerID &amp;#61; CustomerID&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.CustomerName &amp;#61; CustomerName&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;item.RequiresAuthorisedIP &amp;#61; RequiresAuthorisedIP&amp;#59;&lt;br /&gt;&amp;#9;&amp;#9;&amp;#9;&amp;#9;&lt;br /&gt;&amp;#9;        item.Save&amp;#40;UserName&amp;#41;&amp;#59;&lt;br /&gt;&amp;#9;    &amp;#125;&lt;br /&gt;&lt;br /&gt;If I call Update&amp;#40;1,&amp;#34;Test Customer&amp;#34;,true&amp;#41;&amp;#59; The RequiresAuthorisedIP field gets updated to &amp;#39;true&amp;#39;.  If I now call Update&amp;#40;1,&amp;#34;Test Customer&amp;#34;,false&amp;#41;&amp;#59; the  RequiresAuthorisedIP remains as false.&lt;br /&gt;&lt;br /&gt;The reason is that the field  RequiresAuthorisedIP is not being seen as &amp;#39;dirty&amp;#39;.  This is because the customer record is never actually loaded so the the values of the old fields are set to the defaults for an empty record.  In our case the bit field would be a default of &amp;#39;false&amp;#39;.  This result to ignore the change to false with the resulting SQL being&amp;#58;&lt;br /&gt;UPDATE &amp;#91;PSCustomer&amp;#93; SET &amp;#91;CustomerName&amp;#93; &amp;#61; &amp;#64;CustomerName WHERE &amp;#91;CustomerID&amp;#93; &amp;#61; &amp;#64;CustomerID&amp;#59; SELECT &amp;#64;CustomerID AS id&lt;br /&gt;&lt;br /&gt;I beleive there are other issues which have been raised in the past often describing this behaviour when they the desired result is to set a field to null on update.&lt;br /&gt;</description><author>DougPickering</author><pubDate>Mon, 18 Aug 2008 16:00:17 GMT</pubDate><guid isPermaLink="false">Created Issue: controller template for update cannot tell accurately which fields are dirty (especially bit field) 20080818040017P</guid></item><item><title>Created Issue: Invoke Providers problem using Oracle</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17909</link><description>Hi&lt;br /&gt;&lt;br /&gt;SubStage is great - well done&amp;#33;&lt;br /&gt;&lt;br /&gt;I&amp;#39;ve tried Invoking Providers on an Oracle provider.&lt;br /&gt;&lt;br /&gt;At first I got unhandled exception&amp;#58; SPSchema&lt;br /&gt;I got the same error setting UseSPSs to false.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Then, telling it not to use SPs and setting ExcludeSPs to &amp;#42; I got unhandled exception&lt;br /&gt;parsing &amp;#34;&amp;#42;&amp;#34;. Quantifier &amp;#123;x,y&amp;#125; following nothing.&lt;br /&gt;&lt;br /&gt;Cheers&lt;br /&gt;Russ&lt;br /&gt;</description><author>rustyUK</author><pubDate>Mon, 18 Aug 2008 11:47:43 GMT</pubDate><guid isPermaLink="false">Created Issue: Invoke Providers problem using Oracle 20080818114743A</guid></item><item><title>Commented Issue: IsLoaded Flag May be Improperly Set to "true"</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17821</link><description>If my id do not exist when I load an object, the flag IsLoaded is true, but I think that the logic is wrong. The flag IsLoaded should be set to true only when the data has been found &amp;#40;loaded&amp;#41;, otherwise it should be set to false. On the past version version 2.0.3 the flag IsLoaded was set to false if no data had been loaded.&lt;br /&gt;&lt;br /&gt;Example&amp;#58;&lt;br /&gt;id do not exist&lt;br /&gt;Product p &amp;#61; new Product&amp;#40;id&amp;#41;&lt;br /&gt;p.IsLoaded is true&lt;br /&gt;&lt;br /&gt;id exist&lt;br /&gt;Product p &amp;#61; new Product&amp;#40;id&amp;#41;&lt;br /&gt;p.IsLoaded is true&lt;br /&gt;Comments: ** Comment from web user: erickemp ** &lt;p&gt;Fixed in Revision 481.&lt;/p&gt;</description><author>erickemp</author><pubDate>Fri, 15 Aug 2008 19:55:35 GMT</pubDate><guid isPermaLink="false">Commented Issue: IsLoaded Flag May be Improperly Set to "true" 20080815075535P</guid></item><item><title>Commented Issue: SqlDataProvider INFORMATION_SCHEMA Queries Should Respect Original Casing</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17844</link><description>Some of the system column names in the const MANY_TO_MANY_CHECK_ALL in SqlDataProvider should be all upper case in order to work on a case sensitive server installation.&lt;br /&gt;&lt;br /&gt;This is necessary even if the database itself uses a case insensitive collation - the query uses views from INFORMATION.SCHEMA which are defined in the master database, and the master database uses the &amp;#40;case sensitive&amp;#41; collation of the server instance.&lt;br /&gt;&lt;br /&gt;See also&amp;#58; http&amp;#58;&amp;#47;&amp;#47;forums.subsonicproject.com&amp;#47;forums&amp;#47;p&amp;#47;3066&amp;#47;12743.aspx&amp;#35;12743&lt;br /&gt;&lt;br /&gt;The joined patch did resolve the issue.&lt;br /&gt;Comments: ** Comment from web user: erickemp ** &lt;p&gt;Fixed in Revision 481.&lt;/p&gt;</description><author>erickemp</author><pubDate>Fri, 15 Aug 2008 19:55:08 GMT</pubDate><guid isPermaLink="false">Commented Issue: SqlDataProvider INFORMATION_SCHEMA Queries Should Respect Original Casing 20080815075508P</guid></item><item><title>Commented Issue: Manual Modification of Audit Field Can Create Update Exception</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17825</link><description>When you have fields&amp;#58; ModifiedOn, ModifiedBy, CreatedBy, ModifiedBy in one of your table and you set by yourself those values, you get an exception&amp;#58;&lt;br /&gt;&lt;br /&gt;Example&amp;#58;&lt;br /&gt;CategorieTest c &amp;#61; new CategorieTest&amp;#40;id&amp;#41;&amp;#59;&lt;br /&gt;c.ModifiedOn &amp;#61; DateTime.Now&amp;#59;&lt;br /&gt;c.Save&amp;#40;&amp;#34;myUser&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;I get this exception&amp;#58;&lt;br /&gt;Column name &amp;#39;ModifiedOn&amp;#39; appears more than once in the result column list.&lt;br /&gt;Comments: ** Comment from web user: erickemp ** &lt;p&gt;Fixed in Revision 481.&lt;/p&gt;</description><author>erickemp</author><pubDate>Fri, 15 Aug 2008 19:54:34 GMT</pubDate><guid isPermaLink="false">Commented Issue: Manual Modification of Audit Field Can Create Update Exception 20080815075434P</guid></item><item><title>Commented Issue: Problem with ModifiedOn</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17825</link><description>When you have fields&amp;#58; ModifiedOn, ModifiedBy, CreatedBy, ModifiedBy in one of your table and you set by yourself those values, you get an exception&amp;#58;&lt;br /&gt;&lt;br /&gt;Example&amp;#58;&lt;br /&gt;CategorieTest c &amp;#61; new CategorieTest&amp;#40;id&amp;#41;&amp;#59;&lt;br /&gt;c.ModifiedOn &amp;#61; DateTime.Now&amp;#59;&lt;br /&gt;c.Save&amp;#40;&amp;#34;myUser&amp;#34;&amp;#41;&amp;#59;&lt;br /&gt;&lt;br /&gt;I get this exception&amp;#58;&lt;br /&gt;Column name &amp;#39;ModifiedOn&amp;#39; appears more than once in the result column list.&lt;br /&gt;Comments: ** Comment from web user: erickemp ** &lt;p&gt;Thanks for the report... I&amp;#39;ve fixed this for my next check-in...&lt;/p&gt;</description><author>erickemp</author><pubDate>Fri, 15 Aug 2008 19:28:36 GMT</pubDate><guid isPermaLink="false">Commented Issue: Problem with ModifiedOn 20080815072836P</guid></item><item><title>Commented Issue: Invalid column names in SqlDataProvider when used on case sensitive server</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17844</link><description>Some of the system column names in the const MANY_TO_MANY_CHECK_ALL in SqlDataProvider should be all upper case in order to work on a case sensitive server installation.&lt;br /&gt;&lt;br /&gt;This is necessary even if the database itself uses a case insensitive collation - the query uses views from INFORMATION.SCHEMA which are defined in the master database, and the master database uses the &amp;#40;case sensitive&amp;#41; collation of the server instance.&lt;br /&gt;&lt;br /&gt;See also&amp;#58; http&amp;#58;&amp;#47;&amp;#47;forums.subsonicproject.com&amp;#47;forums&amp;#47;p&amp;#47;3066&amp;#47;12743.aspx&amp;#35;12743&lt;br /&gt;&lt;br /&gt;The joined patch did resolve the issue.&lt;br /&gt;Comments: ** Comment from web user: erickemp ** &lt;p&gt;Thanks for the report and the patch&amp;#33; I&amp;#39;ve fixed this for my next check-in...&lt;/p&gt;</description><author>erickemp</author><pubDate>Fri, 15 Aug 2008 19:27:08 GMT</pubDate><guid isPermaLink="false">Commented Issue: Invalid column names in SqlDataProvider when used on case sensitive server 20080815072708P</guid></item><item><title>Created Issue: Incorrect syntax near the keyword 'WHERE'.</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17866</link><description>I got the error &amp;#34;Incorrect syntax near the keyword &amp;#39;WHERE&amp;#39;.&amp;#34; while executing Update method, for example&amp;#58;&lt;br /&gt;&lt;br /&gt;DAL.Customer.Update&amp;#40;1,&amp;#34;Apple&amp;#34;&amp;#41;&lt;br /&gt;&lt;br /&gt;Running the profiler i found that the updated field is missing&amp;#58;&lt;br /&gt;&lt;br /&gt;UPDATE &amp;#91;dbo&amp;#93;.&amp;#91;Customer&amp;#93; SET  WHERE &amp;#91;IDCustomer&amp;#93; &amp;#61; &amp;#64;IDCustomer&amp;#59;&lt;br /&gt;</description><author>dBijis</author><pubDate>Fri, 15 Aug 2008 08:50:07 GMT</pubDate><guid isPermaLink="false">Created Issue: Incorrect syntax near the keyword 'WHERE'. 20080815085007A</guid></item><item><title>Commented Issue: Stored Procedures without parameters execution failure</title><link>http://www.codeplex.com/actionpack/WorkItem/View.aspx?WorkItemId=17800</link><description>With SQL Server 2005 provider , stored procedures without parameters failed when Execute is called. The Command object is not created and A NullObjectException is throwed.&lt;br /&gt;Version used&amp;#58;  2.1&lt;br /&gt;Comments: ** Comment from web user: MarcMez ** &lt;p&gt;I believe this issue has been addressed already in 2.1.1&amp;#63;&lt;br /&gt;See Work Item here&amp;#58; http&amp;#58;&amp;#47;&amp;#47;www.codeplex.com&amp;#47;subsonic&amp;#47;WorkItem&amp;#47;View.aspx&amp;#63;WorkItemId&amp;#61;17342&lt;/p&gt;</description><author>MarcMez</author><pubDate>Thu, 14 Aug 2008 21:56:32 GMT</pubDate><guid isPermaLink="false">Commented Issue: Stored Procedures without parameters execution failure 20080814095632P</guid></item></channel></rss>