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
fixing after getting maven working locally
  • Loading branch information
nick-redfearn committed Jul 26, 2024
commit 624c4957a93f8928169661c273858d6c146fa4fe
13 changes: 7 additions & 6 deletions src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -6633,17 +6633,18 @@ Truncate Truncate():
<K_TRUNCATE>
[LOOKAHEAD(2) <K_TABLE> {truncate.setTableToken(true);}]
[<K_ONLY> { only = true; }]
table=Table() { tables.add(table); } (LOOKAHEAD(3) "," table=Table() { tables.add(table); } )*
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");
} else {
return truncate
.withTables(tables)
.withTable(table)
.withOnly(only)
.withCascade(cascade);
}
return truncate
.withTables(tables)
.withTable(table)
.withOnly(only)
.withCascade(cascade);
}
}

Expand Down