From: Date: October 9 2007 10:40pm Subject: Connector/NET commit: r1027 - branches/1.0/TestSuite List-Archive: http://lists.mysql.com/commits/35236 X-Bug: 31185 Message-Id: <200710092040.l99Kem98021591@bk-internal.mysql.com> Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 @@ } } + /// + /// Bug #31185 columns names are incorrect when using the 'AS' clause and name with accents + /// + [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éro'", c); + DataTable dt = new DataTable(); + da.Fill(dt); + + Assert.AreEqual("Numéro", dt.Columns[0].ColumnName); + } + } } }