mirror of
https://github.com/alibaba/druid.git
synced 2023-03-04 19:17:16 +00:00
add opengauss driver support
This commit is contained in:
@@ -524,6 +524,8 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return JdbcConstants.OSCAR_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:dbcp:")) {
|
||||
return JdbcConstants.TYDB_DRIVER;
|
||||
} else if (rawUrl.startsWith("jdbc:opengauss:")) {
|
||||
return "org.opengauss.Driver";
|
||||
} else {
|
||||
throw new SQLException("unknown jdbc driver : " + rawUrl);
|
||||
}
|
||||
@@ -637,7 +639,9 @@ public final class JdbcUtils implements JdbcConstants {
|
||||
return DbType.highgo;
|
||||
} else if (rawUrl.startsWith("jdbc:pivotal:greenplum:") || rawUrl.startsWith("jdbc:datadirect:greenplum:")) {
|
||||
return DbType.greenplum;
|
||||
} else {
|
||||
} else if (rawUrl.startsWith("jdbc:opengauss:")) {
|
||||
return DbType.gaussdb;
|
||||
}else {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user