mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Support quoted identifiers containing single and double quotes in
mysqltest. (Bug #10251) client/mysqltest.c: Remove duplication in quote-handling quote, and add handling of backquote (`). mysql-test/t/mysqltest.test: Add test of identifiers containing quotes. mysql-test/r/mysqltest.result: Update results
This commit is contained in:
@ -142,3 +142,9 @@ after_--enable_abort_on_error
|
||||
1064
|
||||
select 3 from t1 ;
|
||||
ERROR 42S02: Table 'test.t1' doesn't exist
|
||||
select 1 as `a'b`, 2 as `a"b`;
|
||||
a'b a"b
|
||||
1 2
|
||||
select 'aaa\\','aa''a',"aa""a";
|
||||
aaa\ aa'a aa"a
|
||||
aaa\ aa'a aa"a
|
||||
|
@ -286,3 +286,12 @@ select 3 from t1 ;
|
||||
#select 3 from t1 ;
|
||||
#
|
||||
#select 3 from t1 ;
|
||||
|
||||
|
||||
#
|
||||
# Bug #10251: Identifiers containing quotes not handled correctly
|
||||
#
|
||||
select 1 as `a'b`, 2 as `a"b`;
|
||||
|
||||
# Test escaping of quotes
|
||||
select 'aaa\\','aa''a',"aa""a";
|
||||
|
Reference in New Issue
Block a user