1
0
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:
unknown
2005-05-06 05:48:46 -07:00
parent 745d52bb3d
commit 34ca109146
3 changed files with 37 additions and 40 deletions

View File

@ -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

View File

@ -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";