TestSplitStatement.golden 876 字节
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;
martianzhang's avatar
martianzhang 已提交
41 42 43 44 45 46 47 48 49
0 select * from test\Ghello
1 select 'hello\Gworld', col from test\Ghello
2 -- select * from test\Ghello
3 #select * from test\Ghello
4 select * /*comment*/from test\Ghello
5 select * /*comment;*/from test\Ghello
6 select * /*comment
        \\G*/
        from test\\Ghello