This is an automated email from the ASF dual-hosted git repository.
menghaoran 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 2babfffe227 Refactor DriverDataSourceCache (#37278)
2babfffe227 is described below
commit 2babfffe2273406c1cd90cb193e2522afaa8fb2a
Author: Haoran Meng <[email protected]>
AuthorDate: Thu Dec 4 19:30:42 2025 +0800
Refactor DriverDataSourceCache (#37278)
---
.../shardingsphere/driver/jdbc/core/driver/DriverDataSourceCache.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/driver/DriverDataSourceCache.java
b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/driver/DriverDataSourceCache.java
index ca2412a7daf..26e317a4890 100644
---
a/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/driver/DriverDataSourceCache.java
+++
b/jdbc/src/main/java/org/apache/shardingsphere/driver/jdbc/core/driver/DriverDataSourceCache.java
@@ -57,7 +57,7 @@ public final class DriverDataSourceCache {
ShardingSphereURLLoadEngine urlLoadEngine = new
ShardingSphereURLLoadEngine(url);
Object loadedContent = urlLoadEngine.loadContent();
return loadedContent instanceof ModeConfiguration
- ?
ShardingSphereDataSourceFactory.createDataSource((ModeConfiguration)
loadedContent)
+ ?
ShardingSphereDataSourceFactory.createDataSource(url.getQueryProps().getProperty("databaseName"),
(ModeConfiguration) loadedContent)
:
YamlShardingSphereDataSourceFactory.createDataSource((byte[]) loadedContent);
} catch (final IOException ex) {
throw (T) new SQLException(ex);