diff options
author | Senganal T <senga@mono-cvs.ximian.com> | 2005-12-07 18:31:33 +0300 |
---|---|---|
committer | Senganal T <senga@mono-cvs.ximian.com> | 2005-12-07 18:31:33 +0300 |
commit | fd57f65bcc67902958adf09c62f74fdadd527718 (patch) | |
tree | 33d46be2e7500d575cfa158f0b5a380ecaac8e3f /mcs/class/Mono.Data.SybaseClient | |
parent | 9c55ed023c5940b509ef462c9e72ae09d0acc2d4 (diff) |
2005-12-07 Senganal T <tsenganal@novell.com>
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds50.cs :
- IsValidRowCount () : Find out if a row count is valid.
Fixes bug #76280
* Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds.cs :
- ProcessEndToken (): Removed some redundant code.
* Mono.Data.SybaseClient/SybaseConnection.cs
- fixed ExecuteNonQuery to return the no of rows
affected for Insert/Update/Delete Stmts.
Fixes bug #76280
svn path=/trunk/mcs/; revision=54042
Diffstat (limited to 'mcs/class/Mono.Data.SybaseClient')
-rw-r--r-- | mcs/class/Mono.Data.SybaseClient/ChangeLog | 7 | ||||
-rw-r--r-- | mcs/class/Mono.Data.SybaseClient/Mono.Data.SybaseClient/SybaseCommand.cs | 2 |
2 files changed, 9 insertions, 0 deletions
diff --git a/mcs/class/Mono.Data.SybaseClient/ChangeLog b/mcs/class/Mono.Data.SybaseClient/ChangeLog index e7207194f55..878fdceb839 100644 --- a/mcs/class/Mono.Data.SybaseClient/ChangeLog +++ b/mcs/class/Mono.Data.SybaseClient/ChangeLog @@ -1,3 +1,10 @@ +2005-12-07 Senganal T <tsenganal@novell.com> + + * Mono.Data.SybaseClient/SybaseConnection.cs + - fixed ExecuteNonQuery to return the no of rows + affected for Insert/Update/Delete Stmts. + Fixes bug #76280 + 2005-06-15 Atsushi Enomoto <atsushi@ximian.com> * Mono.Data.SybaseClient.dll.sources : diff --git a/mcs/class/Mono.Data.SybaseClient/Mono.Data.SybaseClient/SybaseCommand.cs b/mcs/class/Mono.Data.SybaseClient/Mono.Data.SybaseClient/SybaseCommand.cs index 850bce04e98..ad31b479b15 100644 --- a/mcs/class/Mono.Data.SybaseClient/Mono.Data.SybaseClient/SybaseCommand.cs +++ b/mcs/class/Mono.Data.SybaseClient/Mono.Data.SybaseClient/SybaseCommand.cs @@ -235,6 +235,7 @@ namespace Mono.Data.SybaseClient { private void Execute (CommandBehavior behavior, bool wantResults) { + Tds.RecordsAffected = -1; TdsMetaParameterCollection parms = Parameters.MetaParameters; if (preparedStatement == null) { bool schemaOnly = ((CommandBehavior & CommandBehavior.SchemaOnly) > 0); @@ -279,6 +280,7 @@ namespace Mono.Data.SybaseClient { try { Execute (CommandBehavior.Default, false); + result = Tds.RecordsAffected; } catch (TdsTimeoutException e) { throw SybaseException.FromTdsInternalException ((TdsInternalException) e); |