Adding thorough tests covering what happens with escaped sequences

in the SQL parser.

Various backslash escapes and quote-quote escaped sequences are covered
in combination with single and multi-byte characters.

This is especially important for the character sets that can have 0x5C
as the second byte in a multi-byte character (big5, cp932, gbk, sjis).

swe7 is also a special character set, because in swe7 0x5C is used for
both escape character and for "LATIN CAPITAL LETTER O WITH DIAERESIS".
This commit is contained in:
Alexander Barkov 2014-09-12 12:57:27 +04:00
commit 6a576f1a58
17 changed files with 21909 additions and 0 deletions

View file

@ -169,3 +169,14 @@ set collation_connection=big5_bin;
--echo #
--echo # End of 5.6 tests
--echo #
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -149,3 +149,14 @@ set collation_connection=gb2312_bin;
--echo #
--echo # End of 5.6 tests
--echo #
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -187,3 +187,14 @@ set collation_connection=gbk_bin;
--echo #
--echo # End of 5.6 tests
--echo #
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -202,3 +202,14 @@ set names latin1;
--echo #
--echo # End of 5.6 tests
--echo #
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -215,3 +215,14 @@ set collation_connection=sjis_bin;
--echo #
--echo # End of 5.6 tests
--echo #
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -0,0 +1,10 @@
--echo #
--echo # Start of 10.0 tests
--echo #
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #

View file

@ -1738,6 +1738,9 @@ DEALLOCATE PREPARE stmt;
DROP TABLE t1;
let $ctype_unescape_combinations=selected;
--source include/ctype_unescape.inc
--echo #
--echo # End of 10.0 tests
--echo #