You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "China-Uncle (via GitHub)" <gi...@apache.org> on 2023/04/24 07:30:20 UTC

[GitHub] [shardingsphere] China-Uncle opened a new issue, #25302: Jointly query unsigned int columns across databases

China-Uncle opened a new issue, #25302:
URL: https://github.com/apache/shardingsphere/issues/25302

   ## Bug Report
   
   **For English only**, other languages will not accept.
   
   Before report a bug, make sure you have:
   
   - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere/issues).
   - Read documentation: [ShardingSphere Doc](https://shardingsphere.apache.org/document/current/en/overview).
   
   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?
   5.2.1
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   ShardingSphere-JDBC
   
   ### Expected behavior
   Query OK
   ### Actual behavior
   Caused by: java.sql.SQLException: Unknown exception: java.lang.Long cannot be cast to java.lang.Integer
   ### Reason analyze (If you can)
   MySQL column is set to unsigned int cross-database correlation query
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   database1:
   CREATE TABLE `member` (
     `id` tinyint(11) unsigned NOT NULL,
     `custom_id` tinyint(11) unsigned NOT NULL,
     PRIMARY KEY (`id`)
   ) ENGINE=InnoDB DEFAULT CHARSET=utf8;
   
   database2:
   CREATE TABLE `info` (
     `id` int(11) unsigned NOT NULL AUTO_INCREMENT,
     `custom_id` int(11) unsigned NOT NULL,
     PRIMARY KEY (`id`)
   ) ENGINE=InnoDB AUTO_INCREMENT=1234567891 DEFAULT CHARSET=utf8;
   
   sql :
   select  * from `member` inner join info on `member`.custom_id=info.custom_id where `member`.id=1
   
   
   
   ### 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.apache.org

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


[GitHub] [shardingsphere] China-Uncle closed issue #25302: Jointly query unsigned int columns across databases

Posted by "China-Uncle (via GitHub)" <gi...@apache.org>.
China-Uncle closed issue #25302: Jointly query unsigned int columns across databases
URL: https://github.com/apache/shardingsphere/issues/25302


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