SteNicholas commented on a change in pull request #4117: add visitor for dal
URL:
https://github.com/apache/incubator-shardingsphere/pull/4117#discussion_r373860023
##########
File path:
shardingsphere-sql-parser/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/MySQLVisitor.java
##########
@@ -221,6 +233,41 @@ public ASTNode visitUse(final UseContext ctx) {
useStatement.setSchema(schema.getLiteral());
return useStatement;
}
+
+ @Override
+ public ASTNode visitDesc(final DescContext ctx) {
+ TableSegment tablename = (TableSegment) visit(ctx.tableName());
+ DescribeStatement describeStatement = new DescribeStatement();
Review comment:
Variable name of `describeStatement` should be `result`.
----------------------------------------------------------------
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