add kingbas

This commit is contained in:
Looly 2021-01-25 21:02:38 +08:00
parent 7525a9a2d1
commit 03511298c2
2 changed files with 17 additions and 11 deletions

View File

@ -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

View File

@ -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;