Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/mono.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Morgan <monodanmorg@yahoo.com>2005-07-16 15:37:36 +0400
committerDaniel Morgan <monodanmorg@yahoo.com>2005-07-16 15:37:36 +0400
commit6b8af86de0cf53c71177cbd8e9b9a5ddd295f0f9 (patch)
tree01d00d5cea726a963f35cc6227512d5e5c8ef252 /mcs/class/System.Data/System.Data.SqlClient
parentf3e262f3dbdb3d6e4a62b1fdf166683d6e7aa748 (diff)
2005-07-16 Daniel Morgan <danielmorgan@verizon.net>
* SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not the orginal value when setting one of the SET variables svn path=/trunk/mcs/; revision=47357
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/ChangeLog5
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs2
2 files changed, 6 insertions, 1 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
index 9cdc9989222..5196a39e1d0 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
+++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,8 @@
+2005-07-16 Daniel Morgan <danielmorgan@verizon.net>
+
+ * SqlCommandBuilder.cs: CreateUpdateCommand should get the current value, not
+ the orginal value when setting one of the SET variables
+
2005-07-15 Sureshkumar T <tsureshkumar@novell.com>
* SqlCommandBuilder.cs:
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
index 5e524a4f22f..62620aa3fce 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlCommandBuilder.cs
@@ -336,7 +336,7 @@ namespace System.Data.SqlClient {
dsColumnName = tableMapping.ColumnMappings [parameter.SourceColumn].DataSetColumn;
if (row != null)
- parameter.Value = row [dsColumnName, DataRowVersion.Original];
+ parameter.Value = row [dsColumnName];
columns.Append (String.Format ("{0} = {1}", GetQuotedString (parameter.SourceColumn), parameter.ParameterName));
}