You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In pgsql, the syntax ON CONFLICT (user_id,name) DO UPDATE SET is used, which cannot be routed to the real physical table when sharding. For English only, other languages will not accept.
INSERT INTO t_user (user_id, name, age)
VALUES
(#{item.userId}, #{item.name}, #{item.age})
ON CONFLICT (user_id,name) DO UPDATE SET
age = EXCLUDED.age+t_user.age
when I used this pg sql style,shardingsphere didn't support.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Bug Report
In pgsql, the syntax ON CONFLICT (user_id,name) DO UPDATE SET is used, which cannot be routed to the real physical table when sharding.
For English only, other languages will not accept.
INSERT INTO t_user (user_id, name, age)
VALUES
(#{item.userId}, #{item.name}, #{item.age})
ON CONFLICT (user_id,name) DO UPDATE SET
age = EXCLUDED.age+t_user.age
when I used this pg sql style,shardingsphere didn't support.
Before report a bug, make sure you have:
Please pay attention on issues you submitted, because we maybe need more details.
If no response anymore and we cannot reproduce it on current information, we will close it.
Please answer these questions before submitting your issue. Thanks!
Which version of ShardingSphere did you use?
org.apache.shardingsphere shardingsphere-jdbc-core 5.2.0Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-JDBC
Expected behavior
Actual SQL: db0 ::: INSERT INTO t_user2 (user_id, name, age)
VALUES
Actual behavior
Actual SQL: db0 ::: INSERT INTO t_user2 (user_id, name, age)
VALUES
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).
The text was updated successfully, but these errors were encountered: