TestSplitStatement.golden 1006 字节
Newer Older
martianzhang's avatar
martianzhang 已提交
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18
0 select * from test;
1 select 'asd;fas', col from test;
2 -- select * from test;hello
3 #select * from test;hello
4 select * /*comment*/from test;
5 select * /*comment;*/from test;
6 select * /*comment
		;*/
		from test;
7 select * from test
8 /*comment*/
9 /*comment*/;
10 --
11 -- comment
12 # comment
13 select
*
-- comment
martianzhang's avatar
martianzhang 已提交
19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
from tb
where col = 1
14 select
* --
from tb
where col = 1
15 select
* #
from tb
where col = 1
16 select
*
--
from tb
where col = 1
martianzhang's avatar
martianzhang 已提交
34 35 36 37
17 select * from
-- comment
tb;
18 
martianzhang's avatar
martianzhang 已提交
38
-- comment
39 40
19 INSERT /*+ SET_VAR(foreign_key_checks=OFF) */ INTO t2 VALUES(2);
20 select /*!50000 1,*/ 1;
41
21 UPDATE xxx SET c1=' LOGGER.error(""); }' WHERE id = 2 ;
martianzhang's avatar
martianzhang 已提交
42
22 UPDATE `xxx` SET aaa='a;' WHERE `id` = 15;
43
23 UPDATE `xxx` SET aaa='a -- b' WHERE `id` = 15;
44 45
0 select * from test\G
1 select 'hello\Gworld', col from test\G
martianzhang's avatar
martianzhang 已提交
46 47
2 -- select * from test\Ghello
3 #select * from test\Ghello
48 49
4 select * /*comment*/from test\G
5 select * /*comment;*/from test\G
martianzhang's avatar
martianzhang 已提交
50 51
6 select * /*comment
        \\G*/
52
        from test\\G