fix url prefix jdbc:oceanbase:oracle recognize error

Signed-off-by: hongwei yi hongweiyi@hotmail.com
workaround: if you need use oceanbase oracle type in Druid previous version, please use DruidDataSource.setDbType("oceanbase_oracle") instead
This commit is contained in:
hongweiyi
2020-10-10 17:18:43 +08:00
parent c06fd07aa7
commit c77c8e731f
2 changed files with 7 additions and 2 deletions
@@ -545,10 +545,10 @@ public final class JdbcUtils implements JdbcConstants {
return DbType.oracle;
} else if (rawUrl.startsWith("jdbc:alibaba:oracle:")) {
return DbType.ali_oracle;
} else if (rawUrl.startsWith("jdbc:oceanbase:")) {
return DbType.oceanbase;
} else if (rawUrl.startsWith("jdbc:oceanbase:oracle:")) {
return DbType.oceanbase_oracle;
} else if (rawUrl.startsWith("jdbc:oceanbase:")) {
return DbType.oceanbase;
} else if (rawUrl.startsWith("jdbc:microsoft:") || rawUrl.startsWith("jdbc:log4jdbc:microsoft:")) {
return DbType.sqlserver;
} else if (rawUrl.startsWith("jdbc:sqlserver:") || rawUrl.startsWith("jdbc:log4jdbc:sqlserver:")) {