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 8a899ca6801 Refactor constructor of MoveStatement to empty
buildAttributes (#38344)
8a899ca6801 is described below
commit 8a899ca680105c85189599cd0a1a5bcce49c0f21
Author: Liang Zhang <[email protected]>
AuthorDate: Wed Mar 4 20:40:39 2026 +0800
Refactor constructor of MoveStatement to empty buildAttributes (#38344)
---
.../sql/parser/statement/core/statement/type/ddl/MoveStatement.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/MoveStatement.java
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/MoveStatement.java
index a68ace42f93..322f5cb247a 100644
---
a/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/MoveStatement.java
+++
b/parser/sql/statement/core/src/main/java/org/apache/shardingsphere/sql/parser/statement/core/statement/type/ddl/MoveStatement.java
@@ -36,12 +36,13 @@ public final class MoveStatement extends DDLStatement {
private final DirectionSegment direction;
- private SQLStatementAttributes attributes;
+ private final SQLStatementAttributes attributes;
public MoveStatement(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 MoveStatement extends DDLStatement {
@Override
public void buildAttributes() {
- attributes = new SQLStatementAttributes(new
CursorSQLStatementAttribute(cursorName));
}
}