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: [email protected]

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


Reply via email to