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| <K_LOW_PRIORITY : "LOW_PRIORITY">
231232| <K_DELAYED : "DELAYED">
232233| <K_HIGH_PRIORITY : "HIGH_PRIORITY">
@@ -506,8 +507,8 @@ Insert Insert():
506507 )
507508 )
508509
509- [ "ON DUPLICATE KEY UPDATE"
510- { useDuplicate = true;}
510+ [ <K_ON> <K_DUPLICATE> <K_KEY> <K_UPDATE>
511+ { useDuplicate = true; }
511512 tableColumn=Column() "=" exp=SimpleExpression()
512513 {
513514 duplicateUpdateColumns = new ArrayList<Column>();
@@ -1209,12 +1210,12 @@ Join JoinerExpression():
12091210 right=FromItem()
12101211
12111212
1212- [
1213- ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
1213+ [
1214+ LOOKAHEAD(2) ( ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
12141215 |
12151216 ( <K_USING> "(" tableColumn=Column() { columns = new ArrayList(); columns.add(tableColumn); }
12161217 ("," tableColumn=Column() { columns.add(tableColumn); } )* ")"
1217- { join.setUsingColumns(columns); } )
1218+ { join.setUsingColumns(columns); } ))
12181219 ]
12191220 {
12201221 join.setRightItem(right);
You can’t perform that action at this time.
0 commit comments