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 4506ea76496 Refactor constructor of CursorStatement to empty 
buildAttributes (#38321)
4506ea76496 is described below

commit 4506ea76496c036d3d03b4b8a0b8ecd52a45a982
Author: Liang Zhang <[email protected]>
AuthorDate: Tue Mar 3 22:06:56 2026 +0800

    Refactor constructor of CursorStatement to empty buildAttributes (#38321)
---
 .../sql/parser/statement/core/statement/type/ddl/CursorStatement.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/ddl/CursorStatement.java
 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/CursorStatement.java
index 057e0fad0e7..3fe42f783c1 100644
--- 
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/CursorStatement.java
+++ 
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/CursorStatement.java
@@ -34,16 +34,16 @@ public final class CursorStatement extends DDLStatement {
     
     private final SelectStatement select;
     
-    private SQLStatementAttributes attributes;
+    private final SQLStatementAttributes attributes;
     
     public CursorStatement(final DatabaseType databaseType, final 
CursorNameSegment cursorName, final SelectStatement select) {
         super(databaseType);
         this.cursorName = cursorName;
         this.select = select;
+        attributes = new SQLStatementAttributes(new 
CursorSQLStatementAttribute(cursorName));
     }
     
     @Override
     public void buildAttributes() {
-        attributes = new SQLStatementAttributes(new 
CursorSQLStatementAttribute(cursorName));
     }
 }

Reply via email to