You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by "strongduanmu (via GitHub)" <gi...@apache.org> on 2023/05/29 00:19:11 UTC
[GitHub] [shardingsphere] strongduanmu commented on a diff in pull request #25921: support for TABLE prefix operator
strongduanmu commented on code in PR #25921:
URL: https://github.com/apache/shardingsphere/pull/25921#discussion_r1208710348
##########
parser/sql/dialect/mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/MySQLStatementVisitor.java:
##########
@@ -761,7 +761,12 @@ public ASTNode visitQuerySpecification(final QuerySpecificationContext ctx) {
@Override
public ASTNode visitTableStatement(final TableStatementContext ctx) {
MySQLSelectStatement result = new MySQLSelectStatement();
- result.setTable((SimpleTableSegment) visit(ctx.tableName()));
+ if (null != ctx.TABLE()) {
Review Comment:
Can you add sql parser test case for this change?
--
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