This is an automated email from the ASF dual-hosted git repository.
yx9o 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 3acd5addbc2 Refactor TCLBackendHandler (#36790)
3acd5addbc2 is described below
commit 3acd5addbc23beb65811d2bda2651b9da8531879
Author: Liang Zhang <[email protected]>
AuthorDate: Sun Oct 5 13:57:29 2025 +0800
Refactor TCLBackendHandler (#36790)
---
.../proxy/backend/handler/tcl/TCLBackendHandlerFactory.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/tcl/TCLBackendHandlerFactory.java
b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/tcl/TCLBackendHandlerFactory.java
index 54f54d05426..4b43050753d 100644
---
a/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/tcl/TCLBackendHandlerFactory.java
+++
b/proxy/backend/core/src/main/java/org/apache/shardingsphere/proxy/backend/handler/tcl/TCLBackendHandlerFactory.java
@@ -77,7 +77,7 @@ public final class TCLBackendHandlerFactory {
: new TCLBackendHandler(tclStatement,
TransactionOperationType.ROLLBACK, connectionSession);
}
if (tclStatement instanceof SetTransactionStatement &&
!((SetTransactionStatement)
tclStatement).isDesiredScope(OperationScope.GLOBAL)) {
- return new SetTransactionHandler((SetTransactionStatement)
tclStatement, connectionSession,
sqlStatementContext.getSqlStatement().getDatabaseType());
+ return new SetTransactionHandler((SetTransactionStatement)
tclStatement, connectionSession, tclStatement.getDatabaseType());
}
if (tclStatement instanceof XAStatement) {
return new XATCLHandler(sqlStatementContext, sql,
connectionSession);