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
path: root/mcs
diff options
context:
space:
mode:
authorSureshkumar T <suresh@mono-cvs.ximian.com>2004-08-12 13:17:04 +0400
committerSureshkumar T <suresh@mono-cvs.ximian.com>2004-08-12 13:17:04 +0400
commit1ad7afd28c5efc8ed57d244f26188a1ca28e1639 (patch)
treee0d35a503dfaefa872a888604d680e2ebcc66e07 /mcs
parentcbaad97e5a9dc16879523e296eec9a18e6bce3ec (diff)
2004-08-12 Sureshkumar T <tsureshkumar@novell.com>
* SqlDataReader.cs - In Close method, the remaining resultsets are drained out, to read output parameters & to avoid stream overlap svn path=/branches/mono-1-0/mcs/; revision=32257
Diffstat (limited to 'mcs')
-rwxr-xr-xmcs/class/System.Data/System.Data.SqlClient/ChangeLog4
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs3
2 files changed, 7 insertions, 0 deletions
diff --git a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
index 14efc7d3b1e..55a0ce00782 100755
--- a/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
+++ b/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
@@ -1,3 +1,7 @@
+2004-08-12 Sureshkumar T <tsureshkumar@novell.com>
+ * SqlDataReader.cs - In Close method, the remaining resultsets are drained
+ out, to read output parameters & to avoid stream overlap
+
2004-06-22 Atsushi Enomoto <atsushi@ximian.com>
* SqlCommandBuilder.cs : Avoid cast exception caused by DbNull.
diff --git a/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs b/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
index 52b6a0a589a..abe23c3aebf 100644
--- a/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
+++ b/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
@@ -131,6 +131,9 @@ namespace System.Data.SqlClient {
public void Close ()
{
+ // skip to end & read output parameters
+ while (NextResult ())
+ ;
isClosed = true;
command.Connection.DataReader = null;
command.CloseDataReader (moreResults);