Modified:
branches/5.0/TestSuite/LanguageTests.cs
Log:
small cleanup to the previous patch. This cleanup came out of applying the patch to the 1.0 branch.
Modified: branches/5.0/TestSuite/LanguageTests.cs
===================================================================
--- branches/5.0/TestSuite/LanguageTests.cs 2007-01-17 22:25:39 UTC (rev 560)
+++ branches/5.0/TestSuite/LanguageTests.cs 2007-01-17 22:27:06 UTC (rev 561)
@@ -33,7 +33,6 @@
[TestFixtureSetUp]
public void FixtureSetup()
{
- csAdditions += ";logging=true;";
Open();
}
@@ -370,7 +369,6 @@
execSQL("CREATE TABLE test (id int(11) NOT NULL, " +
"value varchar(100) NOT NULL, PRIMARY KEY (id)) " +
"ENGINE=MyISAM DEFAULT CHARSET=utf8");
- execSQL("INSERT INTO test VALUES (1, 'šđč枊ĐČĆŽ')");
string conString = GetConnectionString(true) + ";charset=utf8";
try
@@ -379,12 +377,14 @@
{
con.Open();
- MySqlCommand command = new MySqlCommand(
- "SELECT id FROM test WHERE value = ?parameter", con);
- command.Parameters.Add("?parameter", MySqlDbType.VarString);
- command.Parameters[0].Value = "šđč枊ĐČĆŽ";
- command.CommandTimeout = 0;
- object o = command.ExecuteScalar();
+ MySqlCommand cmd = new MySqlCommand("INSERT INTO test VALUES (1, 'šđč枊ĐČĆŽ')", con);
+ cmd.ExecuteNonQuery();
+
+ cmd.CommandText = "SELECT id FROM test WHERE value = ?parameter";
+ cmd.Parameters.Add("?parameter", MySqlDbType.VarString);
+ cmd.Parameters[0].Value = "šđč枊ĐČĆŽ";
+ cmd.CommandTimeout = 0;
+ object o = cmd.ExecuteScalar();
Assert.AreEqual(1, o);
}
}
| Thread |
|---|
| • Connector/NET commit: r561 - branches/5.0/TestSuite | rburnett | 17 Jan |