Merge pull request #4549 from zouchangfu/add-oscar

添加神通国产数据库驱动
This commit is contained in:
温绍锦
2021-11-15 10:06:30 +08:00
committed by GitHub
3 changed files with 11 additions and 0 deletions
@@ -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);
}