List:Commits« Previous MessageNext Message »
From:rburnett Date:October 9 2007 8:40pm
Subject:Connector/NET commit: r1027 - branches/1.0/TestSuite
View as plain text  
Modified:
   branches/1.0/TestSuite/CharacterSetTests.cs
Log:
Added test case for bug #31185

Modified: branches/1.0/TestSuite/CharacterSetTests.cs
===================================================================
--- branches/1.0/TestSuite/CharacterSetTests.cs	2007-10-09 20:39:05 UTC (rev 1026)
+++ branches/1.0/TestSuite/CharacterSetTests.cs	2007-10-09 20:40:48 UTC (rev 1027)
@@ -148,5 +148,23 @@
 			}
 		}
 
+		/// <summary>
+		/// Bug #31185  	columns names are incorrect when using the 'AS' clause and name with accents
+		/// </summary>
+		[Test]
+		public void UTF8AsColumnNames()
+		{
+			string connStr = GetConnectionString(true) + ";charset=utf8";
+			using (MySqlConnection c = new MySqlConnection(connStr))
+			{
+				c.Open();
+
+				MySqlDataAdapter da = new MySqlDataAdapter("select now() as 'Num+				DataTable dt = new DataTable();
+				da.Fill(dt);
+
+				Assert.AreEqual("Num+			}
+		}
 	}
 }

Thread
Connector/NET commit: r1027 - branches/1.0/TestSuiterburnett9 Oct