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 e46fa62 Remove redundant exception reports (#14703)
e46fa62 is described below
commit e46fa62cc140c2728c9b024255759c47c25e4abe
Author: JingShang Lu <[email protected]>
AuthorDate: Wed Jan 12 13:36:43 2022 +0800
Remove redundant exception reports (#14703)
---
.../driver/jdbc/core/connection/ConnectionManager.java | 6 +-----
1 file changed, 1 insertion(+), 5 deletions(-)
diff --git
a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ConnectionManager.java
b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ConnectionManager.java
index e7ccb31..43f3473 100644
---
a/shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ConnectionManager.java
+++
b/shardingsphere-jdbc/shardingsphere-jdbc-core/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ConnectionManager.java
@@ -137,11 +137,7 @@ public final class ConnectionManager implements
ExecutorJDBCManager, AutoCloseab
return transactionRule.map(optional -> new
ConnectionTransaction(schemaName, optional,
contextManager.getTransactionContexts()))
.orElseGet(() -> new ConnectionTransaction(schemaName,
contextManager.getTransactionContexts()));
}
- ConnectionTransaction result = new ConnectionTransaction(schemaName,
type, contextManager.getTransactionContexts());
- if (null == result) {
- throw new RuntimeException(String.format("Get
connectionTransaction error for transaction type %s", type.name()));
- }
- return result;
+ return new ConnectionTransaction(schemaName, type,
contextManager.getTransactionContexts());
}
/**