SteNicholas commented on a change in pull request #4117: add visitor for dal
URL:
https://github.com/apache/incubator-shardingsphere/pull/4117#discussion_r373341634
##########
File path:
shardingsphere-sql-parser/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/MySQLVisitor.java
##########
@@ -153,6 +165,41 @@ public ASTNode visitUse(final UseContext ctx) {
useStatement.setSchema(schema.getLiteral());
return useStatement;
}
+
+ @Override
+ public ASTNode visitDesc(final DescContext ctx) {
+ LiteralValue tablename = (LiteralValue) visit(ctx.tableName());
Review comment:
`visit(ctx.tableName())` should return `TableSegment` not `LiteralValue `.
----------------------------------------------------------------
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:
[email protected]
With regards,
Apache Git Services