strongduanmu opened a new issue, #30453:
URL: https://github.com/apache/shardingsphere/issues/30453

   ## Bug Report
   
   ### Which version of ShardingSphere did you use?
   
   
[6c6816a](https://github.com/apache/shardingsphere/commit/6c6816a2a3d121a83b6f9f1afcedb2bd2d152726)
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Parse following sql successfully.
   
   ```sql
   MERGE INTO t_order t1
   USING (SELECT ? AS userId, ? AS orderId
          FROM DUAL) t2
   ON (t1.user_id = t2.userId AND t1.order_id = t2.orderId)
   WHEN NOT MATCHED THEN
       INSERT (order_id, user_id, status, merchant_id, remark, creation_date)
       VALUES (?, ?, ?, ?, ?, DATE '2017-08-08')
   WHEN MATCHED THEN
       UPDATE
       SET merchant_id = ?,
           remark      = ?,
           status      = ?;
   ```
   
   ### Actual behavior
   
   SQL Parser exception occurs.
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule 
configuration, when exception occur etc.
   
   ### Example codes for reproduce this issue (such as a github link).
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to