Skip to content

Commit 8f12496

Browse files
fix: add LOOKAHEADs
Signed-off-by: Andreas Reichel <[email protected]>
1 parent 829da96 commit 8f12496

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7071,7 +7071,7 @@ List<String> PartitionNamesList() :
70717071
partitionNames.add(tk.image);
70727072
}
70737073
(
7074-
"," tk = <S_IDENTIFIER> {
7074+
LOOKAHEAD(2) "," tk = <S_IDENTIFIER> {
70757075
partitionNames.add(tk.image);
70767076
}
70777077
)*
@@ -7145,7 +7145,7 @@ AlterExpression AlterExpression():
71457145
sk3=RelObjectName() <K_COMMENT> tk=<S_CHAR_LITERAL> { alterExp.withColumnName(sk3).withCommentText(tk.image); }
71467146
)
71477147
|
7148-
(
7148+
LOOKAHEAD(3) (
71497149
<K_PARTITION> {
71507150
alterExp.setOperation(AlterOperation.ADD_PARTITION);
71517151
}

0 commit comments

Comments
 (0)