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 */
227
227
| <K_MATCHED: "MATCHED">
228
228
| <K_CASCADE: "CASCADE">
229
229
| <K_RESTRICT: "RESTRICT">
230
+ | <K_DUPLICATE: "DUPLICATE">
230
231
| <K_LOW_PRIORITY : "LOW_PRIORITY">
231
232
| <K_DELAYED : "DELAYED">
232
233
| <K_HIGH_PRIORITY : "HIGH_PRIORITY">
@@ -506,8 +507,8 @@ Insert Insert():
506
507
)
507
508
)
508
509
509
- [ "ON DUPLICATE KEY UPDATE"
510
- { useDuplicate = true;}
510
+ [ <K_ON> <K_DUPLICATE> <K_KEY> <K_UPDATE>
511
+ { useDuplicate = true; }
511
512
tableColumn=Column() "=" exp=SimpleExpression()
512
513
{
513
514
duplicateUpdateColumns = new ArrayList<Column>();
@@ -1209,12 +1210,12 @@ Join JoinerExpression():
1209
1210
right=FromItem()
1210
1211
1211
1212
1212
- [
1213
- ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
1213
+ [
1214
+ LOOKAHEAD(2) ( ( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
1214
1215
|
1215
1216
( <K_USING> "(" tableColumn=Column() { columns = new ArrayList(); columns.add(tableColumn); }
1216
1217
("," tableColumn=Column() { columns.add(tableColumn); } )* ")"
1217
- { join.setUsingColumns(columns); } )
1218
+ { join.setUsingColumns(columns); } ))
1218
1219
]
1219
1220
{
1220
1221
join.setRightItem(right);
You can’t perform that action at this time.
0 commit comments