mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Handle backslashes correctly in strings that also have doubled quotes when
we are using the NO_BACKSLASH_ESCAPES SQL mode. (Bug #6368)
This commit is contained in:
@ -386,4 +386,18 @@ p mask example
|
||||
20 \\\\% \\\\%
|
||||
20 \\\\% \\\\_
|
||||
DROP TABLE t1;
|
||||
SET @@SQL_MODE='NO_BACKSLASH_ESCAPES';
|
||||
SELECT 'a\\b', 'a\\\"b', 'a''\\b', 'a''\\\"b';
|
||||
a\\b a\\\"b a'\\b a'\\\"b
|
||||
a\\b a\\\"b a'\\b a'\\\"b
|
||||
SELECT "a\\b", "a\\\'b", "a""\\b", "a""\\\'b";
|
||||
a\\b a\\\'b a"\\b a"\\\'b
|
||||
a\\b a\\\'b a"\\b a"\\\'b
|
||||
SET @@SQL_MODE='';
|
||||
SELECT 'a\\b', 'a\\\"b', 'a''\\b', 'a''\\\"b';
|
||||
a\b a\"b a'\b a'\"b
|
||||
a\b a\"b a'\b a'\"b
|
||||
SELECT "a\\b", "a\\\'b", "a""\\b", "a""\\\'b";
|
||||
a\b a\'b a"\b a"\'b
|
||||
a\b a\'b a"\b a"\'b
|
||||
SET @@SQL_MODE=@OLD_SQL_MODE;
|
||||
|
Reference in New Issue
Block a user