1 message in com.mysql.lists.dotnetConnector/NET commit: r144 - in branc...
FromSent OnAttachments
rbur...@mysql.com18 Aug 2005 13:42 
Subject:Connector/NET commit: r144 - in branches/1.0: . TestSuite
From:rbur...@mysql.com (rbur@mysql.com)
Date:08/18/2005 01:42:22 PM
List:com.mysql.lists.dotnet

Modified: branches/1.0/CHANGES branches/1.0/TestSuite/Exceptions.cs branches/1.0/TestSuite/ParameterTests.cs Log: CHANGES - added some missing change notes ParameterTests.cs - Fixed a small error in the newly added test case. Exceptions.cs - removed some whitespace from around the parameter lists

Modified: branches/1.0/CHANGES =================================================================== --- branches/1.0/CHANGES 2005-08-18 20:19:56 UTC (rev 143) +++ branches/1.0/CHANGES 2005-08-18 20:42:43 UTC (rev 144) @@ -38,6 +38,7 @@ Bug�#10454 incorrect return type documented for parameter collection Add
methods [fixed] Bug #12163 Insert using prepared statement causes double insert Bug #12245 using Prepare() on an insert command causes null parameters to
convert to "0" + Bug #12646 Parameters are defaulted to Decimal [added a new test case]

Other changes -------------

Modified: branches/1.0/TestSuite/Exceptions.cs =================================================================== --- branches/1.0/TestSuite/Exceptions.cs 2005-08-18 20:19:56 UTC (rev 143) +++ branches/1.0/TestSuite/Exceptions.cs 2005-08-18 20:42:43 UTC (rev 144) @@ -49,23 +49,23 @@ [Category("NotWorking")] public void TimeoutDuringRead() { - execSQL( "SET @@global.wait_timeout=15" ); - execSQL( "SET @@local.wait_timeout=28800" ); + execSQL("SET @@global.wait_timeout=15"); + execSQL("SET @@local.wait_timeout=28800");

for (int i=1; i < 2000; i++) - execSQL( "INSERT INTO Test VALUES (" + i + ", 'This is a long text string
that I am inserting')" ); + execSQL("INSERT INTO Test VALUES (" + i + ", 'This is a long text string
that I am inserting')");

- MySqlConnection c2 = new MySqlConnection( conn.ConnectionString ); + MySqlConnection c2 = new MySqlConnection(conn.ConnectionString); c2.Open();

- MySqlCommand cmd = new MySqlCommand( "SELECT * FROM Test", c2 ); + MySqlCommand cmd = new MySqlCommand("SELECT * FROM Test", c2); MySqlDataReader reader = null;

try { reader = cmd.ExecuteReader(); reader.Read(); - Thread.Sleep( 20000 ); + Thread.Sleep(20000); while (reader.Read()) { } @@ -74,15 +74,15 @@ } catch (MySqlException ex) { - Assert.IsTrue( ex.IsFatal ); - Assert.AreEqual( ConnectionState.Closed, c2.State ); + Assert.IsTrue(ex.IsFatal); + Assert.AreEqual(ConnectionState.Closed, c2.State); } finally { if (reader != null) reader.Close(); }

- execSQL( "SET @@global.wait_timeout=28800" ); + execSQL("SET @@global.wait_timeout=28800"); } } }

Modified: branches/1.0/TestSuite/ParameterTests.cs =================================================================== --- branches/1.0/TestSuite/ParameterTests.cs 2005-08-18 20:19:56 UTC (rev 143) +++ branches/1.0/TestSuite/ParameterTests.cs 2005-08-18 20:42:43 UTC (rev 144) @@ -286,7 +286,7 @@ p.ParameterName = "?boo"; p.Value = "test"; MySqlParameter mp = (MySqlParameter)p; - Assert.AreEqual(MySqlDbType.String, mp.MySqlDbType); + Assert.AreEqual(MySqlDbType.VarChar, mp.MySqlDbType); }

[Test]