mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
!1217 hutool-db目前不支持ocenbase的推断,希望添加
Merge pull request !1217 from Lone/v5-dev
This commit is contained in:
commit
7fe875e589
@ -100,6 +100,8 @@ public class DialectFactory implements DriverNamePool {
|
||||
String driver = null;
|
||||
if (nameContainsProductInfo.contains("mysql") || nameContainsProductInfo.contains("cobar")) {
|
||||
driver = ClassLoaderUtil.isPresent(DRIVER_MYSQL_V6, classLoader) ? DRIVER_MYSQL_V6 : DRIVER_MYSQL;
|
||||
} else if (nameContainsProductInfo.contains("oceanbase")) {
|
||||
driver = DRIVER_OCEANBASE;
|
||||
} else if (nameContainsProductInfo.contains("oracle")) {
|
||||
driver = ClassLoaderUtil.isPresent(DRIVER_ORACLE, classLoader) ? DRIVER_ORACLE : DRIVER_ORACLE_OLD;
|
||||
} else if (nameContainsProductInfo.contains("postgresql")) {
|
||||
|
@ -12,6 +12,10 @@ public interface DriverNamePool {
|
||||
* JDBC 驱动 MySQL
|
||||
*/
|
||||
String DRIVER_MYSQL = "com.mysql.jdbc.Driver";
|
||||
/**
|
||||
* JDBC 驱动 Oceanbase
|
||||
*/
|
||||
String DRIVER_OCEANBASE = "com.oceanbase.jdbc.Driver";
|
||||
/**
|
||||
* JDBC 驱动 MySQL,在6.X版本中变动驱动类名,且使用SPI机制
|
||||
*/
|
||||
|
Loading…
x
Reference in New Issue
Block a user