mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
@@ -57,6 +57,9 @@ public enum DbType {
|
||||
gaussdb (1 << 38),
|
||||
|
||||
trino (1 << 39),
|
||||
|
||||
oscar (1 << 40),
|
||||
|
||||
|
||||
|
||||
ingres (0),
|
||||
|
||||
@@ -141,4 +141,10 @@ public interface JdbcConstants {
|
||||
*/
|
||||
DbType GREENPLUM = DbType.greenplum;
|
||||
String GREENPLUM_DRIVER = "com.pivotal.jdbc.GreenplumDriver";
|
||||
|
||||
/**
|
||||
* oscar
|
||||
*/
|
||||
DbType OSCAR = DbType.oscar;
|
||||
String OSCAR_DRIVER = "com.oscar.Driver";
|
||||
}
|
||||
|
||||
@@ -525,6 +525,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return JdbcConstants.POLARDB_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:highgo:")) {
|
||||
return "com.highgo.jdbc.Driver";
|
||||
} else if (rawUrl.startsWith("jdbc:oscar")) {
|
||||
return JdbcConstants.OSCAR_DRIVER;
|
||||
} else {
|
||||
throw new SQLException("unknown jdbc driver : " + rawUrl);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user