Selaa lähdekoodia

- Fix the judgment of the new version of the clickhouse jdbc driver.

linghengqian 2 vuotta sitten
vanhempi
commit
2cc26d90ab

+ 1 - 1
mybatis-plus-extension/src/main/java/com/baomidou/mybatisplus/extension/toolkit/JdbcUtils.java

@@ -98,7 +98,7 @@ public class JdbcUtils {
             return DbType.GBASE;
         } else if (url.contains(":gbasedbt-sqli:") || url.contains(":informix-sqli:")) {
             return DbType.GBASE_8S;
-        } else if (url.contains(":clickhouse:")) {
+        } else if (url.contains(":ch:") || url.contains(":clickhouse:")) {
             return DbType.CLICK_HOUSE;
         } else if (url.contains(":oscar:")) {
             return DbType.OSCAR;