Skip to content

Commit fb83268

Browse files
caojipianwenshao
authored andcommitted
JdbcUtils支持华为高斯
1 parent 646cff1 commit fb83268

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

core/src/main/java/com/alibaba/druid/util/JdbcUtils.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -550,6 +550,8 @@ public static String getDriverClassName(String rawUrl) throws SQLException {
550550
return JdbcConstants.GBASE8S_DRIVER;
551551
} else if (rawUrl.startsWith("jdbc:sundb:")) {
552552
return JdbcConstants.SUNDB_DRIVER;
553+
} else if (rawUrl.startsWith("jdbc:gaussdb:")) {
554+
return "com.huawei.gaussdb.jdbc.Driver";
553555
} else {
554556
throw new SQLException("unknown jdbc driver : " + rawUrl);
555557
}

0 commit comments

Comments
 (0)