File tree Expand file tree Collapse file tree 2 files changed +9
-0
lines changed
main/antlr4/com/clickhouse/jdbc/internal
test/java/com/clickhouse/jdbc/internal Expand file tree Collapse file tree 2 files changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -975,6 +975,7 @@ keywordForAlias
975975 | FIRST
976976 | ID
977977 | KEY
978+ | SOURCE
978979 ;
979980
980981alias
Original file line number Diff line number Diff line change 11package com .clickhouse .jdbc .internal ;
22
33
4+ import org .antlr .v4 .runtime .tree .TerminalNode ;
45import org .testng .Assert ;
56import org .testng .annotations .DataProvider ;
67import org .testng .annotations .Test ;
78
9+ import java .lang .reflect .Method ;
10+ import java .util .ArrayList ;
11+ import java .util .Arrays ;
12+ import java .util .List ;
13+
814import static org .testng .Assert .assertEquals ;
915import static org .testng .Assert .assertFalse ;
1016import static org .testng .Assert .assertTrue ;
@@ -275,6 +281,8 @@ public Object[][] testMiscStmtDp() {
275281 return new Object [][] {
276282 {"SELECT INTERVAL '1 day'" , 0 },
277283 {"SELECT INTERVAL 1 day" , 0 },
284+ {"SELECT * FROM table key WHERE ts = ?" , 1 },
285+ {"SELECT * FROM table source WHERE ts = ?" , 1 },
278286 };
279287 }
280288}
You can’t perform that action at this time.
0 commit comments