Author: suresh
Date: 2005-03-24 04:29:28 -0500 (Thu, 24 Mar 2005)
New Revision: 42199

Modified:
   trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
   trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs
Log:
2005-03-24  Sureshkumar T  <[EMAIL PROTECTED]>

        * DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
        value for the parameter.



Modified: trunk/mcs/class/System.Data/System.Data.Common/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/ChangeLog    2005-03-24 
09:18:37 UTC (rev 42198)
+++ trunk/mcs/class/System.Data/System.Data.Common/ChangeLog    2005-03-24 
09:29:28 UTC (rev 42199)
@@ -1,3 +1,8 @@
+2005-03-24  Sureshkumar T  <[EMAIL PROTECTED]>
+
+       * DbDataAdapter.cs: Update: If  SourceColumn is null, do not set
+       value for the parameter.
+
 2005-03-23  Sureshkumar T  <[EMAIL PROTECTED]>
 
        * DbDataAdapter.cs: For Update, disable ReadOnly constraint

Modified: trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs     
2005-03-24 09:18:37 UTC (rev 42198)
+++ trunk/mcs/class/System.Data/System.Data.Common/DbDataAdapter.cs     
2005-03-24 09:29:28 UTC (rev 42199)
@@ -737,6 +737,8 @@
                                                string dsColumnName = 
parameter.SourceColumn;
                                                if 
(columnMappings.Contains(parameter.SourceColumn))
                                                        dsColumnName = 
columnMappings [parameter.SourceColumn].DataSetColumn;
+                                                if (dsColumnName == null || 
dsColumnName.Length <= 0)
+                                                        continue;
                                                DataRowVersion rowVersion = 
DataRowVersion.Default;
 
                                                // Parameter version is ignored 
for non-update commands

_______________________________________________
Mono-patches maillist  -  [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches

Reply via email to