From f88d93f3fe96221e80596d598d2a4fc9f2b06a83 Mon Sep 17 00:00:00 2001 From: wumpz Date: Sun, 9 Aug 2020 23:32:23 +0200 Subject: [PATCH] Revert "Remove unnecessary parenthesis in ON clause of MERGE statement (#1021)" This reverts commit 3d507b491b947d6a7c506f263438de2238f7c58f. --- src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt b/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt index 1c383c25a..9246c2d3a 100644 --- a/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt +++ b/src/main/jjtree/net/sf/jsqlparser/parser/JSqlParserCC.jjt @@ -1220,7 +1220,7 @@ Statement Merge() : { ( table=Table() { merge.setUsingTable(table); } | "(" select=SubSelect() { merge.setUsingSelect(select); } ")" ) [ alias = Alias() { merge.setUsingAlias(alias); } ] - condition = Expression() { merge.setOnCondition(condition); } + "(" condition = Expression() { merge.setOnCondition(condition); } ")" [ ( LOOKAHEAD(2) update = MergeUpdateClause() { merge.setMergeUpdate(update); }