Skip to content
Prev Previous commit
Next Next commit
fix: add LOOKAHEADs
Signed-off-by: Andreas Reichel <andreas@manticore-projects.com>
  • Loading branch information
manticore-projects committed Nov 14, 2024
commit 8f124963266d464cd6662442a098539b843bfe13
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 @@ -7071,7 +7071,7 @@ List<String> PartitionNamesList() :
partitionNames.add(tk.image);
}
(
"," tk = <S_IDENTIFIER> {
LOOKAHEAD(2) "," tk = <S_IDENTIFIER> {
partitionNames.add(tk.image);
}
)*
Expand Down Expand Up @@ -7145,7 +7145,7 @@ AlterExpression AlterExpression():
sk3=RelObjectName() <K_COMMENT> tk=<S_CHAR_LITERAL> { alterExp.withColumnName(sk3).withCommentText(tk.image); }
)
|
(
LOOKAHEAD(3) (
<K_PARTITION> {
alterExp.setOperation(AlterOperation.ADD_PARTITION);
}
Expand Down