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

Modified: branches/1.0/TestSuite/ParameterTests.cs Log: Added test case for Bug #12646 Parameters are defaulted to Decimal it had already been fixed but added a better test case.

Modified: branches/1.0/TestSuite/ParameterTests.cs =================================================================== --- branches/1.0/TestSuite/ParameterTests.cs 2005-08-18 19:52:11 UTC (rev 142) +++ branches/1.0/TestSuite/ParameterTests.cs 2005-08-18 20:19:56 UTC (rev 143) @@ -275,7 +275,21 @@ Assert.AreEqual( DBNull.Value, name ); }

- [Test()] + /// <summary> + /// Bug #12646 Parameters are defaulted to Decimal + /// </summary> + [Test] + public void DefaultType() + { + IDbCommand cmd = conn.CreateCommand(); + IDbDataParameter p = cmd.CreateParameter(); + p.ParameterName = "?boo"; + p.Value = "test"; + MySqlParameter mp = (MySqlParameter)p; + Assert.AreEqual(MySqlDbType.String, mp.MySqlDbType); + } + + [Test] public void OddCharsInParameterNames() { MySqlCommand cmd = new MySqlCommand("INSERT INTO Test (id, name) VALUES (1,
?nam$es)", conn);