Commit 9f3c014c authored by Vesa Pentti's avatar Vesa Pentti

MDEV-10728 -- mysqlbinlog can't be input to mysql client

  String comparison with utf8_bin collation is case sensitive.
  Hence "DELIMITER" did not match with "delimiter".
  The delimiter command matching now uses my_charset_latin1.
parent 51679e5c
...@@ -1094,7 +1094,7 @@ inline bool is_delimiter_command(char *name, ulong len) ...@@ -1094,7 +1094,7 @@ inline bool is_delimiter_command(char *name, ulong len)
only name(first DELIMITER_NAME_LEN bytes) is checked. only name(first DELIMITER_NAME_LEN bytes) is checked.
*/ */
return (len >= DELIMITER_NAME_LEN && return (len >= DELIMITER_NAME_LEN &&
!my_strnncoll(charset_info, (uchar*) name, DELIMITER_NAME_LEN, !my_strnncoll(&my_charset_latin1, (uchar*) name, DELIMITER_NAME_LEN,
(uchar *) DELIMITER_NAME, DELIMITER_NAME_LEN)); (uchar *) DELIMITER_NAME, DELIMITER_NAME_LEN));
} }
......
DeLiMiTeR A;
SELECT 1 A;
delimiter ;
# MDEV-10728
--exec $MYSQL --default-character-set=binary < "t/delimiter_case_mdev_10728.sql"
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