mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-07-21 15:09:48 +08:00
增加识别OpenGauss的驱动类
This commit is contained in:
@@ -161,9 +161,12 @@ public class DialectFactory implements DriverNamePool {
|
||||
} 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;
|
||||
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user