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: 
[email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to