diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-01-03 15:31:29 +0300 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2005-01-03 15:31:29 +0300 |
commit | 369684c1521b12939c2e87e57f69e82bc9abd67b (patch) | |
tree | 2f060c635d44c19ab2508e9825213d1feb484729 /mcs/class/System.Data/System.Data.SqlClient | |
parent | 6a57cd52684423b277a42ac899c72f2b38a49832 (diff) |
2005-01-03 Sureshkumar T <tsureshkumar@novell.com>
* SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0
for each execute statement.
svn path=/trunk/mcs/; revision=38270
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient')
-rwxr-xr-x | mcs/class/System.Data/System.Data.SqlClient/ChangeLog | 5 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs | 1 |
2 files changed, 6 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog index 138a6b7a785..aec6ca3c32e 100755 --- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog +++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog @@ -1,3 +1,8 @@ +2005-01-03 Sureshkumar T <tsureshkumar@novell.com> + + * SqlCommand.cs: Fixed bug #68973. Reset Tds.RecordsAffected to 0 + for each execute statement. + 2004-11-25 Sureshkumar T <tsureshkumar@novell.com> These changes are for 2.0 profile only. These changes implement diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs index ce5ca4a8116..2155f51c027 100644 --- a/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs +++ b/mcs/class/System.Data/System.Data.SqlClient/SqlCommand.cs @@ -319,6 +319,7 @@ namespace System.Data.SqlClient { private void Execute (CommandBehavior behavior, bool wantResults) { + Connection.Tds.RecordsAffected = 0; TdsMetaParameterCollection parms = Parameters.MetaParameters; if (preparedStatement == null) { bool schemaOnly = ((behavior & CommandBehavior.SchemaOnly) > 0); |