增加Gbase8s驱动支持

This commit is contained in:
Looly
2025-08-18 10:23:43 +08:00
parent 010393653d
commit 4289a2658a
3 changed files with 10 additions and 1 deletions

View File

@@ -2,7 +2,7 @@
# 🚀Changelog
-------------------------------------------------------------------------------------------------------------
# 5.8.40(2025-08-11)
# 5.8.40(2025-08-18)
### 🐣新特性
* 【captcha】 `MathGenerator`四则运算方式支持不生成负数结果pr#1363@Gitee
@@ -11,6 +11,7 @@
* 【core 】 `DateUtil`增加`yyyy-MM-dd'T'HH:mmXXX`格式支持pr#1367@Gitee
* 【core 】 `MapUtil`增加flatten方法pr#1368@Gitee
* 【extra 】 `getClientIP`优先获取传入的请求头信息pr#1373@Gitee
* 【db 】 增加`Gbase8s`驱动支持issue#ICSFAM@Gitee
### 🐞Bug修复
* 【extra 】 `Sftp``reconnectIfTimeout`方法改为捕获所有异常issue#3989@Github

View File

@@ -173,6 +173,9 @@ public class DialectFactory implements DriverNamePool {
} else if (nameContainsProductInfo.contains("sap")) {
// sap hana
driver = DRIVER_HANA;
} else if (nameContainsProductInfo.contains("gbasedbt-sqli")) {
// Gbase8shttps://www.gbase.cn/community/post/4029
driver = DRIVER_GBASE8S;
}
return driver;

View File

@@ -104,6 +104,11 @@ public interface DriverNamePool {
* JDBC 驱动 南大通用
*/
String DRIVER_GBASE = "com.gbase.jdbc.Driver";
/**
* JDBC 驱动 南大通用8S<br>
* 见https://www.gbase.cn/community/post/4029
*/
String DRIVER_GBASE8S = "com.gbasedbt.jdbc.Driver";
/**
* JDBC 驱动 神州数据库
*/