Skip to content

Commit 2654548

Browse files
committed
1 parent b4a5ce1 commit 2654548

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5542,7 +5542,7 @@ Truncate Truncate():
55425542
* [ RESTART IDENTITY | CONTINUE IDENTITY ] [ CASCADE | RESTRICT ]
55435543
*
55445544
*/
5545-
<K_TRUNCATE> [<K_TABLE> {truncate.setTableToken(true);}] [<K_ONLY> {truncate.setOnly(true);}]
5545+
<K_TRUNCATE> [LOOKAHEAD(2) <K_TABLE> {truncate.setTableToken(true);}] [<K_ONLY> {truncate.setOnly(true);}]
55465546
table=Table() { truncate.setTable(table); truncate.setCascade(false); } [ <K_CASCADE> {truncate.setCascade(true);} ]
55475547
{
55485548
return truncate;
@@ -6066,11 +6066,7 @@ AlterSystemStatement AlterSystemStatement():
60666066
)
60676067
|
60686068
(
6069-
"DISCONNECT" "SESSION" { operation = AlterSystemOperation.DISCONNECT_SESSION; }
6070-
)
6071-
|
6072-
(
6073-
"KILL" "SESSION" { operation = AlterSystemOperation.KILL_SESSION; }
6069+
"KILL SESSION" { operation = AlterSystemOperation.KILL_SESSION; }
60746070
)
60756071
|
60766072
(

0 commit comments

Comments
 (0)