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/22 13:48:23 UTC

[GitHub] [shardingsphere] zjcnb commented on issue #12510: sharding route to unexcepted data nodes when use transaction with seata1.4.1

zjcnb commented on issue #12510:
URL: https://github.com/apache/shardingsphere/issues/12510#issuecomment-924948508


   Hi, your sharding key is centerId, but your sql are
   
   ```
   Logic SQL: select traineecen0_.id as id1_0_0_, traineecen0_.centerId as centerid2_0_0_, traineecen0_.name as name3_0_0_ from trainee_center_info traineecen0_ where traineecen0_.id=?
   ```
   Your should change sharding_key or change your sql,  such as change to :
   ```
   Logic SQL: select traineecen0_.id as id1_0_0_, traineecen0_.centerId as centerid2_0_0_, traineecen0_.name as name3_0_0_ from trainee_center_info traineecen0_ where traineecen0_.centerId=?
   ```
   
   


-- 
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