Author: suresh
Date: 2005-04-19 04:54:04 -0400 (Tue, 19 Apr 2005)
New Revision: 43240
Modified:
trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
trunk/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
Log:
2005-04-19 Sureshkumar T <[EMAIL PROTECTED]>
* SqlDataReader.cs: NextResult (): Re-create schema table for each
result set. don't re-use, as it may be referenced from somewhere.
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-04-19
08:01:53 UTC (rev 43239)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/ChangeLog 2005-04-19
08:54:04 UTC (rev 43240)
@@ -1,3 +1,8 @@
+2005-04-19 Sureshkumar T <[EMAIL PROTECTED]>
+
+ * SqlDataReader.cs: NextResult (): Re-create schema table for each
+ result set. don't re-use, as it may be referenced from somewhere.
+
2005-04-07 Sureshkumar T <[EMAIL PROTECTED]>
Ankit Jain <[EMAIL PROTECTED]>
Modified: trunk/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
===================================================================
--- trunk/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
2005-04-19 08:01:53 UTC (rev 43239)
+++ trunk/mcs/class/System.Data/System.Data.SqlClient/SqlDataReader.cs
2005-04-19 08:54:04 UTC (rev 43240)
@@ -963,14 +963,15 @@
if ((command.CommandBehavior &
CommandBehavior.SingleResult) != 0 && resultsRead > 0)
return false;
- schemaTable.Rows.Clear ();
-
- moreResults = command.Tds.NextResult ();
+ moreResults = command.Tds.NextResult ();
if (!moreResults)
command.GetOutputParameters ();
+ else {
+ //new schema
+ schemaTable = ConstructSchemaTable ();
+ GetSchemaTable ();
+ }
- GetSchemaTable ();
-
rowsRead = 0;
resultsRead += 1;
return moreResults;
_______________________________________________
Mono-patches maillist - [email protected]
http://lists.ximian.com/mailman/listinfo/mono-patches