Browse Source

Merge pull request #21 in CORE/base-third from ~LOY/base-third:feature/10.0 to feature/10.0

* commit 'fb3afc45ea239ac31a3d657015b95f728e5c465e':
  druid中hsql驱动问题
10.0
superman 7 years ago
parent
commit
871022b987
  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) {
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:")) {
return DB2_DRIVER;
} else if (rawUrl.startsWith("jdbc:sqlite:")) {

Loading…
Cancel
Save