Commit 6a6bedfa authored by unknown's avatar unknown

Bug#18396 Identifiers: Byte with value 255 not allowed

Old FRM files didn't allow byte 255 as a column name part.
Since now we store column names in UTF8, this restriction
is not required anymore: 255 is not a valid byte in UTF8.
Fix: removing checking against 255.


mysql-test/r/ctype_latin1.result:
  Adding test case
mysql-test/t/ctype_latin1.test:
  Adding test case
sql/sql_lex.cc:
  Removing old code, unnecessary anymore.
parent de0e4a9a
......@@ -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 `abcdef`;
CREATE TABLE `abcdef` (i int);
INSERT INTO `abcdef` VALUES (1);
INSERT INTO abcdef VALUES (2);
SELECT * FROM `abcdef`;
i
1
2
SELECT * FROM abcdef;
i
1
2
DROP TABLE `abcdef`;
......@@ -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 `abcdef`;
--enable_warnings
CREATE TABLE `abcdef` (i int);
INSERT INTO `abcdef` VALUES (1);
INSERT INTO abcdef VALUES (2);
SELECT * FROM `abcdef`;
SELECT * FROM abcdef;
DROP TABLE `abcdef`;
......@@ -804,8 +804,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)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment