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/07/26 02:44:49 UTC

[GitHub] [shardingsphere] menghaoranss commented on a change in pull request #11466: Fixes #10673, execute DCL without use schema.

menghaoranss commented on a change in pull request #11466:
URL: https://github.com/apache/shardingsphere/pull/11466#discussion_r676256554



##########
File path: shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/statement/impl/MySQLDCLStatementSQLVisitor.java
##########
@@ -727,7 +727,11 @@ public ASTNode visitUserName(final UserNameContext ctx) {
     
     @Override
     public ASTNode visitDropUser(final DropUserContext ctx) {
-        return new MySQLDropUserStatement();
+        MySQLDropUserStatement result = new MySQLDropUserStatement();

Review comment:
       Could use lambda instead of `for`?




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