mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
highgo support, fix #4118
This commit is contained in:
@@ -46,6 +46,7 @@ public enum DbType {
|
||||
ali_oracle (1 << 33),
|
||||
mock (1 << 34),
|
||||
sybase (1 << 35),
|
||||
highgo (1 << 36),
|
||||
|
||||
|
||||
ingres (0),
|
||||
|
||||
@@ -516,6 +516,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return JdbcConstants.KDB_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:polardb")) {
|
||||
return JdbcConstants.POLARDB_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:highgo:")) {
|
||||
return "com.highgo.jdbc.Driver";
|
||||
} else {
|
||||
throw new SQLException("unknown jdbc driver : " + rawUrl);
|
||||
}
|
||||
@@ -621,6 +623,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return DbType.kdb;
|
||||
} else if (rawUrl.startsWith("jdbc:polardb")) {
|
||||
return DbType.polardb;
|
||||
} else if (rawUrl.startsWith("jdbc:highgo:")) {
|
||||
return DbType.highgo;
|
||||
} else {
|
||||
return null;
|
||||
}
|
||||
|
||||
@@ -12,4 +12,5 @@ jdbc:sqlite:=org.sqlite.JDBC
|
||||
jdbc:ingres:=com.ingres.jdbc.IngresDriver
|
||||
jdbc:h2:=org.h2.Driver
|
||||
jdbc:mckoi:=com.mckoi.JDBCDriver
|
||||
jdbc:clickhouse:=ru.yandex.clickhouse.ClickHouseDriver
|
||||
jdbc:clickhouse:=ru.yandex.clickhouse.ClickHouseDriver
|
||||
jdbc:highgo:=com.highgo.jdbc.Driver
|
||||
Reference in New Issue
Block a user