This commit is contained in:
Looly
2023-04-14 02:01:53 +08:00
parent eb00ed76de
commit 55ee4298e9
3 changed files with 10 additions and 9 deletions

View File

@@ -74,7 +74,7 @@ public class DruidDSFactory extends AbstractDSFactory {
// Druid连接池配置信息规范化属性名
final Props druidProps = new Props();
poolSetting.forEach((key, value)-> druidProps.put(StrUtil.addPrefixIfNot(key, "druid."), value));
ds.configFromPropety(druidProps);
ds.configFromPropeties(druidProps);
//issue#I4ZKCW 某些非属性设置单独设置
// connectionErrorRetryAttempts

View File

@@ -21,8 +21,6 @@ public class DialectFactoryTest {
map.put("sqlite",DRIVER_SQLLITE3);
map.put("sqlserver",DRIVER_SQLSERVER);
map.put("microsoft",DRIVER_SQLSERVER);
map.put("hive2",DRIVER_HIVE2);
map.put("hive",DRIVER_HIVE);
map.put("h2",DRIVER_H2);
map.put("derby",DRIVER_DERBY);
map.put("hsqldb",DRIVER_HSQLDB);
@@ -40,6 +38,9 @@ public class DialectFactoryTest {
map.put("sybase",DRIVER_SYBASE);
map.put("mariadb",DRIVER_MARIADB);
// 单元测试歧义
//map.put("hive2",DRIVER_HIVE2);
//map.put("hive",DRIVER_HIVE);
map.forEach((k,v) -> Assertions.assertEquals(v,
DialectFactory.identifyDriver(k+ RandomUtil.randomString(2),null) ));