This is an automated email from the ASF dual-hosted git repository.

zhangliang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/shardingsphere.git


The following commit(s) were added to refs/heads/master by this push:
     new 347cd2e  format code for pr#8665 (#8731)
347cd2e is described below

commit 347cd2ef51353117a82e7ab1c955aa7ab44d8c9d
Author: JingShang Lu <[email protected]>
AuthorDate: Wed Dec 23 23:09:34 2020 +0800

    format code for pr#8665 (#8731)
    
    * format code for pr#8665
---
 .../sql/parser/mysql/visitor/MySQLSQLStatVisitor.java            | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLSQLStatVisitor.java
 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLSQLStatVisitor.java
index 64a0dac..c628d35 100644
--- 
a/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLSQLStatVisitor.java
+++ 
b/shardingsphere-sql-parser/shardingsphere-sql-parser-dialect/shardingsphere-sql-parser-mysql/src/main/java/org/apache/shardingsphere/sql/parser/mysql/visitor/MySQLSQLStatVisitor.java
@@ -101,14 +101,13 @@ public final class MySQLSQLStatVisitor extends 
MySQLStatementBaseVisitor<SqlStat
         } else {
             name = new IdentifierValue(ctx.identifier(0).getText());
         }
-        ColumnSegment column = new ColumnSegment(ctx.start.getStartIndex(), 
ctx.stop.getStopIndex(), name);
-        column.setOwner(owner);
-        return column;
+        ColumnSegment result = new ColumnSegment(ctx.start.getStartIndex(), 
ctx.stop.getStopIndex(), name);
+        result.setOwner(owner);
+        return result;
     }
 
     private ColumnSegment getColumn(final IdentifierContext ctx) {
-        ColumnSegment column = new ColumnSegment(ctx.start.getStartIndex(), 
ctx.stop.getStopIndex(), new IdentifierValue(ctx.getText()));
-        return column;
+        return new ColumnSegment(ctx.start.getStartIndex(), 
ctx.stop.getStopIndex(), new IdentifierValue(ctx.getText()));
     }
 
     private AliasSegment getAlias(final AliasContext ctx) {

Reply via email to