You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by GitBox <gi...@apache.org> on 2021/09/07 08:53:21 UTC
[GitHub] [shardingsphere] strongduanmu opened a new issue #12266: Insert statement get wrong route result when sharding/encrypt/shadow/readwrite_splitting mixed use
strongduanmu opened a new issue #12266:
URL: https://github.com/apache/shardingsphere/issues/12266
### Which version of ShardingSphere did you use?
master branch
### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
ShardingSphere-Proxy
### Expected behavior
Execute success and get correct result.
### Actual behavior
Get exception with message —— `Insert statement does not support sharding table routing to multiple data nodes.`
When i remove this check, the route result is wrong.
```sql
Logic SQL: INSERT INTO t_order(order_id, user_id, content, telephone) VALUES (1, 1, 'TEST1', '12345678900'), (2, 2, 'TEST2', '09876543211')
Actual SQL: ds_write_0 ::: INSERT INTO t_order_0(order_id, user_id, content, user_cipher, user_plain) VALUES (1, 1, 'TEST1', 'kLjLJIMnfyHT2nA+viaoaQ==', '12345678900'), (2, 2, 'TEST2', 'OedX4HEwl3VOz1CMaCWz0g==', '09876543211')
Actual SQL: ds_write_0 ::: INSERT INTO t_order_1(order_id, user_id, content, user_cipher, user_plain) VALUES (1, 1, 'TEST1', 'kLjLJIMnfyHT2nA+viaoaQ==', '12345678900'), (2, 2, 'TEST2', 'OedX4HEwl3VOz1CMaCWz0g==', '09876543211')
Actual SQL: ds_write_1 ::: INSERT INTO t_order_0(order_id, user_id, content, user_cipher, user_plain) VALUES (1, 1, 'TEST1', 'kLjLJIMnfyHT2nA+viaoaQ==', '12345678900'), (2, 2, 'TEST2', 'OedX4HEwl3VOz1CMaCWz0g==', '09876543211')
Actual SQL: ds_write_1 ::: INSERT INTO t_order_1(order_id, user_id, content, user_cipher, user_plain) VALUES (1, 1, 'TEST1', 'kLjLJIMnfyHT2nA+viaoaQ==', '12345678900'), (2, 2, 'TEST2', 'OedX4HEwl3VOz1CMaCWz0g==', '09876543211')
```
--
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
[GitHub] [shardingsphere] strongduanmu commented on issue #12266: Insert statement get exception when sharding/encrypt/shadow/readwrite_splitting mixed use
Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #12266:
URL: https://github.com/apache/shardingsphere/issues/12266#issuecomment-914125258
Get exception because i lack of some config segements.
--
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
[GitHub] [shardingsphere] strongduanmu edited a comment on issue #12266: Insert statement get exception when sharding/encrypt/shadow/readwrite_splitting mixed use
Posted by GitBox <gi...@apache.org>.
strongduanmu edited a comment on issue #12266:
URL: https://github.com/apache/shardingsphere/issues/12266#issuecomment-914125258
Get exception because i lack of some config segments.
--
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
[GitHub] [shardingsphere] strongduanmu closed issue #12266: Insert statement get exception when sharding/encrypt/shadow/readwrite_splitting mixed use
Posted by GitBox <gi...@apache.org>.
strongduanmu closed issue #12266:
URL: https://github.com/apache/shardingsphere/issues/12266
--
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