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 a6f6c25ef27 Refactor constructor of FetchStatement to empty
buildAttributes (#38334)
a6f6c25ef27 is described below
commit a6f6c25ef27428bf18f03e6619304ca2f8cfa301
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Mar 4 14:06:38 2026 +0800
Refactor constructor of FetchStatement to empty buildAttributes (#38334)
---
.../sql/parser/statement/core/statement/type/ddl/FetchStatement.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/FetchStatement.java
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/FetchStatement.java
index d12dddacc37..c74020f3464 100644
---
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/FetchStatement.java
+++
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/FetchStatement.java
@@ -36,12 +36,13 @@ public final class FetchStatement extends DDLStatement {
private final DirectionSegment direction;
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public FetchStatement(final DatabaseType databaseType, final
CursorNameSegment cursorName, final DirectionSegment direction) {
super(databaseType);
this.cursorName = cursorName;
this.direction = direction;
+ attributes = new SQLStatementAttributes(new
CursorSQLStatementAttribute(cursorName));
}
/**
@@ -55,6 +56,5 @@ public final class FetchStatement extends DDLStatement {
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
CursorSQLStatementAttribute(cursorName));
}
}