Skip to content

Commit 0d235f3

Browse files
authored
修复getConnectionKey方法调用参数名称错误的问题
https://gitee.com/Tencent/APIJSON/pulls/10
1 parent 5139e81 commit 0d235f3

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

APIJSONORM/src/main/java/apijson/orm/AbstractSQLExecutor.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1315,7 +1315,7 @@ public Connection getConnection(@NotNull SQLConfig<T, M, L> config) throws Excep
13151315
}
13161316

13171317
public String getConnectionKey(@NotNull SQLConfig<T, M, L> config) {
1318-
return getConnectionKey(config.getNamespace(), config.getCatalog(), config.getDatasource(), config.getDatabase());
1318+
return getConnectionKey(config.getDatabase(), config.getDatasource(), config.getNamespace(), config.getCatalog());
13191319
}
13201320
public String getConnectionKey(String database, String datasource, String namespace, String catalog) {
13211321
return database + "-" + datasource + "-" + namespace + "-" + catalog;
@@ -1541,3 +1541,4 @@ public int executeUpdate(@NotNull SQLConfig<T, M, L> config, String sql) throws
15411541

15421542

15431543
}
1544+

0 commit comments

Comments
 (0)