diff --git a/mysql-test/r/ctype_latin1.result b/mysql-test/r/ctype_latin1.result index f8e07e1eb6f9ad6d14c0cea07b8d258a0dfa3fa7..32871563b6423ea4c2295967f3e2519ee54ee918 100644 --- a/mysql-test/r/ctype_latin1.result +++ b/mysql-test/r/ctype_latin1.result @@ -391,3 +391,17 @@ ABC SELECT convert(@str collate latin1_swedish_ci using utf8); convert(@str collate latin1_swedish_ci using utf8) ABC €°§ß²³µ~ äöüÄÖÜ áéíóú ÀÈÌÒÙ @ abc +SET NAMES latin1; +DROP TABLE IF EXISTS `abcÿdef`; +CREATE TABLE `abcÿdef` (i int); +INSERT INTO `abcÿdef` VALUES (1); +INSERT INTO abcÿdef VALUES (2); +SELECT * FROM `abcÿdef`; +i +1 +2 +SELECT * FROM abcÿdef; +i +1 +2 +DROP TABLE `abcÿdef`; diff --git a/mysql-test/t/ctype_latin1.test b/mysql-test/t/ctype_latin1.test index dead9a7a0bc43582cf5cc11c5cfdf937bcb7db13..0a112233ffbfa9637e8c75977d7ff3549529370d 100644 --- a/mysql-test/t/ctype_latin1.test +++ b/mysql-test/t/ctype_latin1.test @@ -110,3 +110,14 @@ SELECT convert(@str collate latin1_german2_ci using utf8); SELECT convert(@str collate latin1_swedish_ci using utf8); # End of 4.1 tests + +SET NAMES latin1; +--disable_warnings +DROP TABLE IF EXISTS `abcÿdef`; +--enable_warnings +CREATE TABLE `abcÿdef` (i int); +INSERT INTO `abcÿdef` VALUES (1); +INSERT INTO abcÿdef VALUES (2); +SELECT * FROM `abcÿdef`; +SELECT * FROM abcÿdef; +DROP TABLE `abcÿdef`; diff --git a/sql/sql_lex.cc b/sql/sql_lex.cc index d45f4369095426a363e2274fe89ba6e24d113848..6811f120c3fe80e878afdf6420c0787e0650cb49 100644 --- a/sql/sql_lex.cc +++ b/sql/sql_lex.cc @@ -777,8 +777,6 @@ int MYSQLlex(void *arg, void *yythd) int length; if ((length= my_mbcharlen(cs, c)) == 1) { - if (c == (uchar) NAMES_SEP_CHAR) - break; /* Old .frm format can't handle this char */ if (c == quote_char) { if (yyPeek() != quote_char)