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

Modified: branches/5.0/TestSuite/Source/StoredProcedure.cs
===================================================================
--- branches/5.0/TestSuite/Source/StoredProcedure.cs	2007-11-05 18:21:09 UTC (rev 1065)
+++ branches/5.0/TestSuite/Source/StoredProcedure.cs	2007-11-05 19:16:28 UTC (rev 1066)
@@ -1262,7 +1262,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: r1066 - branches/5.0/TestSuite/Sourcerburnett5 Nov