List:Commits« Previous MessageNext Message »
From:rburnett Date:November 5 2007 7:17pm
Subject:Connector/NET commit: r1067 - branches/5.1/TestSuite/Source
View as plain text  
Modified:
   branches/5.1/TestSuite/Source/StoredProcedure.cs
Log:
fixed error where I wasn't closing the datareader at the end of the test.

Modified: branches/5.1/TestSuite/Source/StoredProcedure.cs
===================================================================
--- branches/5.1/TestSuite/Source/StoredProcedure.cs	2007-11-05 19:16:28 UTC (rev 1066)
+++ branches/5.1/TestSuite/Source/StoredProcedure.cs	2007-11-05 19:17:13 UTC (rev 1067)
@@ -1353,7 +1353,9 @@
 					END");
 			MySqlCommand command = new MySqlCommand("spTest", conn);
 			command.CommandType = CommandType.StoredProcedure;
-			MySqlDataReader reader = command.ExecuteReader();
+            using (MySqlDataReader reader = command.ExecuteReader())
+            {
+            }
 		}
 
         /// <summary>

Thread
Connector/NET commit: r1067 - branches/5.1/TestSuite/Sourcerburnett5 Nov