diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2004-08-10 08:02:37 +0400 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2004-08-10 08:02:37 +0400 |
commit | 0ecdb9646431ac2eff26ee4d476751f1127dcae9 (patch) | |
tree | 7d32aff7797d5f9dbd3932825dc321c996c8cfe9 /mcs | |
parent | de77a2caa989394f54dc30f76e0df48aa1fac13f (diff) |
2004-08-09 Sureshkumar T <tsureshkumar@novell.com>
* Tds70.cs - Prepare Method stored procedure handle read problem fixed.
svn path=/branches/mono-1-0/mcs/; revision=32131
Diffstat (limited to 'mcs')
-rw-r--r-- | mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog | 3 | ||||
-rw-r--r-- | mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs | 4 |
2 files changed, 5 insertions, 2 deletions
diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog index bcf7dd8b1f8..8b10478d15b 100644 --- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog +++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/ChangeLog @@ -1,3 +1,6 @@ +2004-08-09 Sureshkumar T <tsureshkumar@novell.com> + * Tds70.cs - Prepare Method stored procedure handle read problem fixed. + 2004-04-22 Sebastien Pouliot <sebastien@ximian.com> * Tds70.cs: Updated to match changes in Mono.Security.dll. diff --git a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs index 0b55a30abe3..010283fb929 100644 --- a/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs +++ b/mcs/class/Mono.Data.Tds/Mono.Data.Tds.Protocol/Tds70.cs @@ -457,9 +457,9 @@ namespace Mono.Data.Tds.Protocol { parms.Add (new TdsMetaParameter ("@P3", "nvarchar", commandText)); ExecProc ("sp_prepare", parms, 0, true); - if (!NextResult () || !NextRow () || ColumnValues [0] == null || ColumnValues [0] == DBNull.Value) - throw new TdsInternalException (); SkipToEnd (); + if (ColumnValues [0] == null || ColumnValues [0] == DBNull.Value) + throw new TdsInternalException (); return ColumnValues [0].ToString (); } |