Skip to content

Commit

Permalink
fixes #192, fixes #191
Browse files Browse the repository at this point in the history
  • Loading branch information
wumpz committed Nov 14, 2015
1 parent 18cf905 commit 2fddf8c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -227,6 +227,7 @@ TOKEN: /* SQL Keywords. prefixed with K_ to avoid name clashes */
| <K_MATCHED: "MATCHED">
| <K_CASCADE: "CASCADE">
| <K_RESTRICT: "RESTRICT">
| <K_DUPLICATE: "DUPLICATE">
}

TOKEN : /* Numeric Constants */
Expand Down Expand Up @@ -493,8 +494,8 @@ Insert Insert():
)
)

[ "ON DUPLICATE KEY UPDATE"
{ useDuplicate = true;}
[ <K_ON> <K_DUPLICATE> <K_KEY> <K_UPDATE>
{ useDuplicate = true; }
tableColumn=Column() "=" exp=SimpleExpression()
{
duplicateUpdateColumns = new ArrayList<Column>();
Expand Down Expand Up @@ -1194,7 +1195,7 @@ Join JoinerExpression():
right=FromItem()


[
[ LOOKAHEAD(2)
( <K_ON> onExpression=Expression() { join.setOnExpression(onExpression); } )
|
( <K_USING> "(" tableColumn=Column() { columns = new ArrayList(); columns.add(tableColumn); }
Expand Down

0 comments on commit 2fddf8c

Please sign in to comment.