You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "FlyingZC (via GitHub)" <gi...@apache.org> on 2023/02/19 07:25:54 UTC

[GitHub] [shardingsphere] FlyingZC opened a new issue, #24238: Rename index error in mysql

FlyingZC opened a new issue, #24238:
URL: https://github.com/apache/shardingsphere/issues/24238

   ## Bug Report
   Rename index error in mysql
   
   ### Which version of ShardingSphere did you use?
   Master.
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   Proxy.
   
   ### Expected behavior
   Rename index success.
   
   ### Actual behavior
   Rename index failed.
   
   ### Reason analyze (If you can)
   
   ### Steps to reproduce the behavior, such as: SQL to execute, sharding rule configuration, when exception occur etc.
   ```sql
   CREATE TABLE t_order (order_id INT NOT NULL, user_id INT NOT NULL, status VARCHAR(45) NULL, PRIMARY KEY (order_id));
   
   mysql> ALTER TABLE t_order ADD INDEX idx_t_order_user_id(user_id);
   Query OK, 0 rows affected (2.43 sec)
   
   mysql> ALTER TABLE t_order RENAME INDEX idx_t_order_user_id TO idx_user_id;
   ERROR 1176 (42000): Key 'idx_t_order_user_id' doesn't exist in table 't_order_0'
   mysql> show create table t_order;
   ```
   
   ### 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] strongduanmu closed issue #24238: Rename index error in mysql

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu closed issue #24238: Rename index error in mysql
URL: https://github.com/apache/shardingsphere/issues/24238


-- 
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] FlyingZC commented on issue #24238: Rename index error in mysql

Posted by "FlyingZC (via GitHub)" <gi...@apache.org>.
FlyingZC commented on issue #24238:
URL: https://github.com/apache/shardingsphere/issues/24238#issuecomment-1436319842

   @strongduanmu I want to investigate it, please assign me.


-- 
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 #24238: Rename index error in mysql

Posted by "strongduanmu (via GitHub)" <gi...@apache.org>.
strongduanmu commented on issue #24238:
URL: https://github.com/apache/shardingsphere/issues/24238#issuecomment-1436321500

   @FlyingZC Assgined.


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