You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2024/03/11 09:43:28 UTC
[I] Parse Oracle merge statement error when we write not matched first [shardingsphere]
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: notifications-unsubscribe@shardingsphere.apache.org.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
Re: [I] Parse Oracle merge statement error when we write not matched first [shardingsphere]
Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #30453: Parse Oracle merge statement error when we write not matched first
URL: https://github.com/apache/shardingsphere/issues/30453
--
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: notifications-unsubscribe@shardingsphere.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org