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 823c782c95e Refactor constructor of SetStatement to empty 
buildAttributes (#38354)
823c782c95e is described below

commit 823c782c95e385a27087ded664882030d877fb6b
Author: Liang Zhang <[email protected]>
AuthorDate: Thu Mar 5 20:31:43 2026 +0800

    Refactor constructor of SetStatement to empty buildAttributes (#38354)
---
 .../sql/parser/statement/core/statement/type/dal/SetStatement.java    | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/SetStatement.java
 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/SetStatement.java
index 29eb9ece478..c834b1a969b 100644
--- 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/SetStatement.java
+++ 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/dal/SetStatement.java
@@ -33,15 +33,15 @@ public final class SetStatement extends DALStatement {
     
     private final List<VariableAssignSegment> variableAssigns;
     
-    private SQLStatementAttributes attributes;
+    private final SQLStatementAttributes attributes;
     
     public SetStatement(final DatabaseType databaseType, final 
List<VariableAssignSegment> variableAssigns) {
         super(databaseType);
         this.variableAssigns = variableAssigns;
+        attributes = new SQLStatementAttributes(new 
AllowNotUseDatabaseSQLStatementAttribute(true));
     }
     
     @Override
     public void buildAttributes() {
-        attributes = new SQLStatementAttributes(new 
AllowNotUseDatabaseSQLStatementAttribute(true));
     }
 }

Reply via email to