diff options
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs')
-rw-r--r-- | mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs | 3 |
1 files changed, 3 insertions, 0 deletions
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); |