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
diff options
context:
space:
mode:
Diffstat (limited to 'mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs')
-rw-r--r--mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs3
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);