diff options
author | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2004-08-12 13:17:04 +0400 |
---|---|---|
committer | Sureshkumar T <suresh@mono-cvs.ximian.com> | 2004-08-12 13:17:04 +0400 |
commit | 1ad7afd28c5efc8ed57d244f26188a1ca28e1639 (patch) | |
tree | e0d35a503dfaefa872a888604d680e2ebcc66e07 /mcs | |
parent | cbaad97e5a9dc16879523e296eec9a18e6bce3ec (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-x | mcs/class/System.Data/System.Data.SqlClient/ChangeLog | 4 | ||||
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs | 3 |
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); |