* 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
+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.
public void Close ()
{
+ // skip to end & read output parameters
+ while (NextResult ())
+ ;
isClosed = true;
command.Connection.DataReader = null;
command.CloseDataReader (moreResults);