Skip to content

Commit

Permalink
增加识别OpenGauss的驱动类
Browse files Browse the repository at this point in the history
  • Loading branch information
looly committed Nov 28, 2023
1 parent f8a92ca commit 41e4b3f
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 3 deletions.
3 changes: 2 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -161,9 +161,12 @@ public static String identifyDriver(String nameContainsProductInfo, ClassLoader
} else if (nameContainsProductInfo.contains("sybase")) {
// Sybase
driver = DRIVER_SYBASE;
}else if (nameContainsProductInfo.contains("mariadb")) {
} else if (nameContainsProductInfo.contains("mariadb")) {
// mariadb
driver = DRIVER_MARIADB;
} else if (nameContainsProductInfo.contains("opengauss")) {
// OpenGauss
driver = DRIVER_OPENGAUSS;
}

return driver;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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";
}

0 comments on commit 41e4b3f

Please sign in to comment.