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 2022/01/11 14:57:23 UTC

[GitHub] [shardingsphere] lafaso opened a new issue #14694: mysql binary not support??

lafaso opened a new issue #14694:
URL: https://github.com/apache/shardingsphere/issues/14694


   ## Bug Report
   
   Hello,Teachers,
   
   this is my mysql table, and user_id is the sharding field.
   ![image](https://user-images.githubusercontent.com/16465114/148962086-0a4e1502-5703-4171-abdd-91bc5b7f827e.png)
   
   when I execute the following SQL statement, it does not work!  just special for the ‘**binary** ’,it doesn't support '**binary**'?
   
   `SELECT * FROM t_order WHERE order_id = #{orderId,jdbcType=INTEGER} AND user_id= binary #{userId,jdbcType=VARCHAR}`
   
   ### Which version of ShardingSphere did you use?
   4.1.1
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   it will sharding by user_id
   
   ### Actual behavior
   no sharding
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   SQL:
   ![IGri0ZDmi3](https://user-images.githubusercontent.com/16465114/148964250-18c3edf7-9020-4d32-ba31-17cfa4231c2b.png)
   
   debug the method,return a empty map;
   private Map<Column, Collection<RouteValue>> createRouteValueMap(SQLStatementContext sqlStatementContext, AndPredicate andPredicate, List<Object> parameters) 
   1、
   ![image](https://user-images.githubusercontent.com/16465114/148964225-4f098406-ddec-4c9c-a2e9-5f50f87c71a4.png)
   2、
   ![image](https://user-images.githubusercontent.com/16465114/148964706-392e6bdb-5797-418d-9023-dda8951fb504.png)
   3、
   ![image](https://user-images.githubusercontent.com/16465114/148965112-db370664-88bf-4851-815d-aec3f9c46bc5.png)
   4、
   ![image](https://user-images.githubusercontent.com/16465114/148965903-2048f856-2bfc-457b-82de-07a19ee7197c.png)
   
   
   ### 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

For queries about this service, please contact Infrastructure at:
users@infra.apache.org



[GitHub] [shardingsphere] strongduanmu commented on issue #14694: sql use 'binary' sharding is not support??

Posted by GitBox <gi...@apache.org>.
strongduanmu commented on issue #14694:
URL: https://github.com/apache/shardingsphere/issues/14694#issuecomment-1010490890


   @lafaso Thank you for your feedback, I will investigate this problem.


-- 
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] tristaZero closed issue #14694: sql use 'binary' sharding is not support??

Posted by GitBox <gi...@apache.org>.
tristaZero closed issue #14694:
URL: https://github.com/apache/shardingsphere/issues/14694


   


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