mirror of
https://gitee.com/dromara/hutool.git
synced 2025-05-06 05:38:00 +08:00
add kingbas
This commit is contained in:
parent
7525a9a2d1
commit
03511298c2
@ -3,7 +3,7 @@
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
|
||||
# 5.5.8 (2021-01-22)
|
||||
# 5.5.8 (2021-01-25)
|
||||
|
||||
### 新特性
|
||||
* 【extra 】 增加自动装配SpringUtil类(pr#1366@Github)
|
||||
@ -20,6 +20,7 @@
|
||||
* 【core 】 DateConvert转换失败默认抛出异常(issue#I2M5GN@Gitee)
|
||||
* 【http 】 HttpServerRequest增加getParam方法
|
||||
* 【http 】 RootAction增加可选name参数,返回指定文件名称
|
||||
* 【db 】 支持人大金仓8的驱动识别
|
||||
|
||||
### Bug修复
|
||||
* 【core 】 修复FileUtil.move以及PathUtil.copy等无法自动创建父目录的问题(issue#I2CKTI@Gitee)
|
||||
|
@ -50,6 +50,8 @@ public class DialectFactory {
|
||||
public static final String DRIVER_HSQLDB = "org.hsqldb.jdbc.JDBCDriver";
|
||||
/** JDBC 驱动 达梦7 */
|
||||
public static final String DRIVER_DM7 = "dm.jdbc.driver.DmDriver";
|
||||
/** JDBC 驱动 人大金仓 */
|
||||
public static final String DRIVER_KINGBASE8 = "com.kingbase8.Driver";
|
||||
|
||||
private static final Map<DataSource, Dialect> DIALECT_POOL = new ConcurrentHashMap<>();
|
||||
|
||||
@ -133,6 +135,9 @@ public class DialectFactory {
|
||||
} else if (nameContainsProductInfo.contains("dm")) {
|
||||
// 达梦7
|
||||
driver = DRIVER_DM7;
|
||||
} else if (nameContainsProductInfo.contains("kingbase8")) {
|
||||
// 人大金仓8
|
||||
driver = DRIVER_KINGBASE8;
|
||||
}
|
||||
|
||||
return driver;
|
||||
|
Loading…
Reference in New Issue
Block a user