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 2020/10/30 05:32:32 UTC

[GitHub] [shardingsphere] tuohai666 opened a new issue #7967: Proxy does not support RENAME TABLE

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


   ## 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.0.0-RC1-SNAPSHOT
   
   ### Which project did you use? ShardingSphere-JDBC or ShardingSphere-Proxy?
   
   ShardingSphere-Proxy
   
   ### Expected behavior
   
   Execute SQL correctly:
   
   `rename table t_order order;`
   
   ### Actual behavior
   
   ERROR 1235 (42000): This version of ShardingProxy doesn't yet support this SQL. 'Unsupported SQL of `rename table t_order order`'
   
   Errors in the log:
   
   ```
   line 1:7 no viable alternative at input 'renametable'
   line 1:7 no viable alternative at input 'renametable'
   line 1:0 no viable alternative at input 'rename'
   line 1:0 mismatched input 'rename' expecting CREATE
   ```
   
   ### Reason analyze (If you can)
   
   Parse error.
   
   ### 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.

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



[GitHub] [shardingsphere] jingshanglu edited a comment on issue #7967: Unsupported SQL of `RENAME TABLE`

Posted by GitBox <gi...@apache.org>.
jingshanglu edited a comment on issue #7967:
URL: https://github.com/apache/shardingsphere/issues/7967#issuecomment-732116757


   @tuohai666 `rename table t_order order;` the sql is illegal, and `To`  is necessary, plz use 
   ```rename table t_order TO `order`;```, now master branch is ok.


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

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



[GitHub] [shardingsphere] strongduanmu commented on issue #7967: Unsupported SQL of `RENAME TABLE`

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


   @tuohai666 Refer to the official [MySQL documentation](https://dev.mysql.com/doc/refman/8.0/en/rename-table.html), `RENAME TABLE Statement` must contain the `TO` keyword.
   
   ```sql
   RENAME TABLE
       tbl_name TO new_tbl_name
       [, tbl_name2 TO new_tbl_name2] ...
   ```
   You can try the following SQL:
   
   ```sql
   rename table t_order TO `order`;
   ```
   


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

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



[GitHub] [shardingsphere] jingshanglu commented on issue #7967: Unsupported SQL of `RENAME TABLE`

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


   @tuohai666 `rename table t_order order;` the sql is illegal, and `To`  is necessary, plz use "rename table t_order TO `order`;", now master branch is ok.


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

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



[GitHub] [shardingsphere] jingshanglu closed issue #7967: Unsupported SQL of `RENAME TABLE`

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


   


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

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