Skip to content

Commit

Permalink
Revert "Remove unnecessary parenthesis in ON clause of MERGE statement (
Browse files Browse the repository at this point in the history
#1021)"

This reverts commit 3d507b4.
  • Loading branch information
wumpz committed Aug 9, 2020
1 parent 3d507b4 commit f88d93f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt
Original file line number Diff line number Diff line change
Expand Up @@ -1220,7 +1220,7 @@ Statement Merge() : {
( table=Table() { merge.setUsingTable(table); }
| "(" select=SubSelect() { merge.setUsingSelect(select); } ")" )
[ alias = Alias() { merge.setUsingAlias(alias); } ] <K_ON>
condition = Expression() { merge.setOnCondition(condition); }
"(" condition = Expression() { merge.setOnCondition(condition); } ")"

[
( LOOKAHEAD(2) update = MergeUpdateClause() { merge.setMergeUpdate(update); }
Expand Down

0 comments on commit f88d93f

Please sign in to comment.