mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
增加识别OpenGauss的驱动类
This commit is contained in:
parent
f8a92ca4a5
commit
41e4b3ffb0
@ -2,11 +2,12 @@
|
||||
# 🚀Changelog
|
||||
|
||||
-------------------------------------------------------------------------------------------------------------
|
||||
# 5.8.24(2023-11-20)
|
||||
# 5.8.24(2023-11-29)
|
||||
|
||||
### 🐣新特性
|
||||
* 【cache 】 Cache增加get重载,可自定义超时时间(issue#I8G0DL@Gitee)
|
||||
* 【cache 】 JWT#sign增加重载,可选是否增加默认的typ参数(issue#3386@Github)
|
||||
* 【db 】 增加识别OpenGauss的驱动类(issue#I8K6C0@Gitee)
|
||||
|
||||
### 🐞Bug修复
|
||||
* 【core 】 修复LocalDateTime#parseDate未判断空问题问题(issue#I8FN7F@Gitee)
|
||||
|
@ -164,6 +164,9 @@ public class DialectFactory implements DriverNamePool {
|
||||
} else if (nameContainsProductInfo.contains("mariadb")) {
|
||||
// mariadb
|
||||
driver = DRIVER_MARIADB;
|
||||
} else if (nameContainsProductInfo.contains("opengauss")) {
|
||||
// OpenGauss
|
||||
driver = DRIVER_OPENGAUSS;
|
||||
}
|
||||
|
||||
return driver;
|
||||
|
@ -108,5 +108,8 @@ public interface DriverNamePool {
|
||||
* JDBC 驱动 Sybase
|
||||
*/
|
||||
String DRIVER_SYBASE = "com.sybase.jdbc4.jdbc.SybDriver";
|
||||
|
||||
/**
|
||||
* JDBC 驱动 OpenGauss
|
||||
*/
|
||||
String DRIVER_OPENGAUSS = "org.opengauss.Driver";
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user