Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
replacng tabs with spaces
  • Loading branch information
nick-redfearn committed Jul 25, 2024
commit 6d425c004aad89d6ef82d4ec5aff824514f78d9a
4 changes: 2 additions & 2 deletions src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -6633,8 +6633,8 @@ Truncate Truncate():
<K_TRUNCATE>
[LOOKAHEAD(2) <K_TABLE> {truncate.setTableToken(true);}]
[<K_ONLY> { only = true; }]
table=Table() { tables.add(table); } (LOOKAHEAD(2) "," table=Table() { tables.add(table); } )*
[<K_CASCADE> { cascade = true; }]
table=Table() { tables.add(table); } (LOOKAHEAD(2) "," table=Table() { tables.add(table); } )*
[<K_CASCADE> { cascade = true; }]
{
if (only && tables.size() > 1 ) {
throw new ParseException("Cannot TRUNCATE ONLY with multiple tables");
Expand Down