You are viewing a plain text version of this content. The canonical link for it is here.
Posted to notifications@shardingsphere.apache.org by zh...@apache.org on 2024/06/15 12:35:34 UTC
(shardingsphere) branch master updated: Refactor ShardingSphereConnection (#31712)
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 acec56bb7fa Refactor ShardingSphereConnection (#31712)
acec56bb7fa is described below
commit acec56bb7fa5eff71d7c0043ff97bab090c43d46
Author: Liang Zhang <zh...@apache.org>
AuthorDate: Sat Jun 15 20:35:28 2024 +0800
Refactor ShardingSphereConnection (#31712)
---
.../driver/jdbc/core/connection/ShardingSphereConnection.java | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnection.java b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnection.java
index cf9be12ad83..9e6caad1a03 100644
--- a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnection.java
+++ b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/connection/ShardingSphereConnection.java
@@ -85,8 +85,9 @@ public final class ShardingSphereConnection extends AbstractConnectionAdapter {
public ShardingSphereConnection(final String databaseName, final ContextManager contextManager) {
this.databaseName = databaseName;
this.contextManager = contextManager;
- databaseConnectionManager = new DriverDatabaseConnectionManager(databaseName, contextManager, new Grantee("", ""));
- processId = processEngine.connect(new Grantee("", ""), databaseName);
+ Grantee grantee = new Grantee("", "");
+ databaseConnectionManager = new DriverDatabaseConnectionManager(databaseName, contextManager, grantee);
+ processId = processEngine.connect(grantee, databaseName);
}
/**