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/18 13:50:34 UTC

[GitHub] [shardingsphere] tuohai666 opened a new issue #12576: Table name tends to be case sensitive when Single Table Routing

tuohai666 opened a new issue #12576:
URL: https://github.com/apache/shardingsphere/issues/12576


   ## 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?
   
   master branch
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   When I execute an SQL which contains the **Single Table** (the table is in the database while the table name is not in any rule files) via ShardingSphere-Proxy, the table name tends to be case sensitive.
   Suppose the table **test** is the Single Table.
   What I expect are
   
   ```
   mysql> select * from test;
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   | fid  | fint | ffloat | ftext | fdate | fdatetime | ftimestamp          | ftime | fblob |
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   | 1    |    1 |      1 | 1     | NULL  | NULL      | 2019-12-25 06:20:43 | NULL  | NULL  |
   | NULL | NULL |   NULL | NULL  | NULL  | NULL      | 2020-09-07 07:26:27 | NULL  | 4V   |
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   ```
   
   and
   
   ```
   mysql> select * from TEST;
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   | fid  | fint | ffloat | ftext | fdate | fdatetime | ftimestamp          | ftime | fblob |
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   | 1    |    1 |      1 | 1     | NULL  | NULL      | 2019-12-25 06:20:43 | NULL  | NULL  |
   | NULL | NULL |   NULL | NULL  | NULL  | NULL      | 2020-09-07 07:26:27 | NULL  | 4V   |
   +------+------+--------+-------+-------+-----------+---------------------+-------+-------+
   ```
   
   ### Actual behavior
   
   ```
   mysql> select * from TEST limit 1;
   ERROR 1146 (42S02): Table 'demo_ds_0.TEST' doesn't exist
   ```
   
   ### Reason analyze (If you can)
   
   This problem is not caused by MySQL server parameter configurations and can be easily reproduced.
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   
   ### 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 #12576: Table name tends to be case sensitive when Single Table Routing

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


   @tuohai666 Thank you for your feedback, I will check it.


-- 
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 #12576: Table name tends to be case sensitive when Single Table Routing

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


   


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