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/11/05 06:47:50 UTC

[GitHub] [shardingsphere] tuichenchuxin opened a new issue #13474: mysql parse alter table drop constraint error

tuichenchuxin opened a new issue #13474:
URL: https://github.com/apache/shardingsphere/issues/13474


   ```
   ALTER TABLE t_order DROP CONSTRAINT order_index
   ```
   when I parse this sql , we will get an error.
   ```
   java.lang.ClassCastException: org.apache.shardingsphere.sql.parser.sql.common.value.identifier.IdentifierValue cannot be cast to org.apache.shardingsphere.sql.parser.sql.common.segment.ddl.constraint.ConstraintSegment
   
   	at org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLDDLStatementSQLVisitor.visitAlterList(MySQLDDLStatementSQLVisitor.java:308)
   	at org.apache.shardingsphere.sql.parser.mysql.visitor.statement.impl.MySQLDDLStatementSQLVisitor.visitAlterList(MySQLDDLStatementSQLVisitor.java:162)
   	at org.apache.shardingsphere.sql.parser.autogen.MySQLStatementParser$AlterListContext.accept(MySQLStatementParser.java:28871)
   	at org.antlr.v4.runtime.tree.AbstractParseTreeVisitor.visit(AbstractParseTreeVisitor.java:18)
   ```


-- 
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 closed issue #13474: mysql parse alter table drop constraint error

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






-- 
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 closed issue #13474: mysql parse alter table drop constraint error

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


   


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