File tree Expand file tree Collapse file tree 1 file changed +6
-5
lines changed
src/main/jjtree/net/sf/jsqlparser/parser Expand file tree Collapse file tree 1 file changed +6
-5
lines changed Original file line number Diff line number Diff line change @@ -227,6 +227,7 @@ TOKEN: /* SQL Keywords. prefixed with K_ to avoid name clashes */
227227| <K_MATCHED: "MATCHED">
228228| <K_CASCADE: "CASCADE">
229229| <K_RESTRICT: "RESTRICT">
230+ | <K_DUPLICATE: "DUPLICATE">
230231}
231232
232233TOKEN : /* Numeric Constants */
@@ -493,8 +494,8 @@ Insert Insert():
493494 )
494495 )
495496
496- [ "ON DUPLICATE KEY UPDATE"
497- { useDuplicate = true;}
497+ [ <K_ON> <K_DUPLICATE> <K_KEY> <K_UPDATE>
498+ { useDuplicate = true; }
498499 tableColumn=Column() "=" exp=SimpleExpression()
499500 {
500501 duplicateUpdateColumns = new ArrayList<Column>();
@@ -1194,12 +1195,12 @@ Join JoinerExpression():
11941195 right=FromItem()
11951196
11961197
1197- [
1198- ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
1198+ [
1199+ LOOKAHEAD(2) ( ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
11991200 |
12001201 ( <K_USING> "(" tableColumn=Column() { columns = new ArrayList(); columns.add(tableColumn); }
12011202 ("," tableColumn=Column() { columns.add(tableColumn); } )* ")"
1202- { join.setUsingColumns(columns); } )
1203+ { join.setUsingColumns(columns); } ))
12031204 ]
12041205 {
12051206 join.setRightItem(right);
You can’t perform that action at this time.
0 commit comments