Modified:
branches/5.0/TestSuite/Source/Syntax.cs
Log:
no bug here but we included the test case anyway. This checks to make sure the output of show processlist returns strings.
Modified: branches/5.0/TestSuite/Source/Syntax.cs
===================================================================
--- branches/5.0/TestSuite/Source/Syntax.cs 2007-05-17 14:48:56 UTC (rev 726)
+++ branches/5.0/TestSuite/Source/Syntax.cs 2007-05-21 14:40:31 UTC (rev 727)
@@ -502,5 +502,25 @@
suExecSQL("DROP DATABASE `my db`");
}
}
+
+ /// <summary>
+ /// Bug #28448 show processlist; returns byte arrays in the resulting data table
+ /// </summary>
+ [Test]
+ public void ShowProcessList()
+ {
+ MySqlCommand cmd = new MySqlCommand("show processlist", conn);
+ DataTable dt = new DataTable();
+
+ using (MySqlDataReader rdr = cmd.ExecuteReader())
+ {
+ dt.Load(rdr);
+ }
+ DataRow row = dt.Rows[0];
+
+ Assert.IsTrue(row["User"].GetType().Name == "String");
+ Assert.IsTrue(row["Host"].GetType().Name == "String");
+ Assert.IsTrue(row["Command"].GetType().Name == "String");
+ }
}
}
| Thread |
|---|
| • Connector/NET commit: r727 - branches/5.0/TestSuite/Source | rburnett | 21 May |