Browse Source

druid中hsql驱动问题

10.0
loy 7 years ago
parent
commit
27b02e3b8a
  1. 7
      fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java

7
fine-druid/src/com/fr/third/alibaba/druid/util/JdbcUtils.java

@ -407,6 +407,13 @@ public final class JdbcUtils implements JdbcConstants {
} catch (Throwable ignore) { } catch (Throwable ignore) {
return "org.hsqldb.jdbcDriver"; return "org.hsqldb.jdbcDriver";
} }
} else if (rawUrl.startsWith("emb:jdbc:hsqldb:")) {
try {
Class.forName("com.fr.third.org.hsqldb.jdbcDriver");
return "com.fr.third.org.hsqldb.jdbcDriver";
} catch (Throwable ignore) {
return "org.hsqldb.jdbcDriver";
}
} else if (rawUrl.startsWith("jdbc:db2:")) { } else if (rawUrl.startsWith("jdbc:db2:")) {
return DB2_DRIVER; return DB2_DRIVER;
} else if (rawUrl.startsWith("jdbc:sqlite:")) { } else if (rawUrl.startsWith("jdbc:sqlite:")) {

Loading…
Cancel
Save