List:Commits« Previous MessageNext Message »
From:rburnett Date:September 19 2006 11:43pm
Subject:Connector/NET commit: r352 - in branches/1.0: . TestSuite
View as plain text  
Modified:
   branches/1.0/CHANGES
   branches/1.0/TestSuite/CommandTests.cs
Log:
Bug #7248  There is already an open DataReader associated with this Connection which must
closed first.
This bug was already fixed but we added a test case.

Modified: branches/1.0/CHANGES
===================================================================
--- branches/1.0/CHANGES	2006-09-19 21:42:59 UTC (rev 351)
+++ branches/1.0/CHANGES	2006-09-19 21:43:48 UTC (rev 352)
@@ -28,6 +28,7 @@
 	Bug #20581 Null Reference Exception when closing reader after stored procedure. 
 	Bug #21521 # Symbols not allowed in column/table names.    
 	Bug #16884 Invalid DateTime Values from DataReader     
+	Bug #7248  There is already an open DataReader associated with this Connection which
must 
 	
 x-xx-05 - Version 1.0.7
 

Modified: branches/1.0/TestSuite/CommandTests.cs
===================================================================
--- branches/1.0/TestSuite/CommandTests.cs	2006-09-19 21:42:59 UTC (rev 351)
+++ branches/1.0/TestSuite/CommandTests.cs	2006-09-19 21:43:48 UTC (rev 352)
@@ -324,8 +324,25 @@
 			{
 				Assert.Fail( ex.Message );
 			}
+		}
 
-		}
+        /// <summary>
+        /// Bug #7248 There is already an open DataReader associated with this Connection
which must 
+        /// </summary>
+        [Test]
+        public void GenWarnings()
+        {
+            execSQL("DROP TABLE IF EXISTS test");
+            execSQL("CREATE TABLE test (id INT, dt DATETIME)");
+            execSQL("INSERT INTO test VALUES (1, NOW())");
+            execSQL("INSERT INTO test VALUES (2, NOW())");
+            execSQL("INSERT INTO test VALUES (3, NOW())");
+
+            MySqlDataAdapter da = new MySqlDataAdapter("SELECT * FROM test WHERE dt = '"
+
+                DateTime.Now + "'", conn);
+            DataSet ds = new DataSet();
+            da.Fill(ds);
+        }
 	}
 
     #region Configs

Thread
Connector/NET commit: r352 - in branches/1.0: . TestSuiterburnett19 Sep