[ 
https://issues.apache.org/jira/browse/CALCITE-5206?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Julian Hyde resolved CALCITE-5206.
----------------------------------
    Fix Version/s: 1.31.0
       Resolution: Fixed

Fixed in 
[85a6ecdd|https://github.com/apache/calcite/commit/85a6ecdd1d759e2f53e574b1a1b194d5af16aa75].

> Parser allows MERGE with mismatched parentheses
> -----------------------------------------------
>
>                 Key: CALCITE-5206
>                 URL: https://issues.apache.org/jira/browse/CALCITE-5206
>             Project: Calcite
>          Issue Type: Bug
>            Reporter: Julian Hyde
>            Assignee: Julian Hyde
>            Priority: Major
>             Fix For: 1.31.0
>
>
> The SQL parser allows invalid MERGE statements with mismatched parentheses. 
> For example, the following invalid statement is treated as valid but is 
> missing a trailing ')':
> {code}
> merge into emps as e
> using temps as t on e.empno = t.empno
> when not matched
> then insert (a, b) (values (1, 2);
> {code}
> And the following invalid statement is treated as valid but has an unmatched 
> trailing ')':
> {code}
> merge into emps as e
> using temps as t on e.empno = t.empno
> when not matched
> then insert (a, b) values (1, 2));
> {code}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to