Browse Source

druid使用改过包名的hsql问题

10.0
loy 7 years ago
parent
commit
ab2bcc1178
  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

@ -401,7 +401,12 @@ public final class JdbcUtils implements JdbcConstants {
} else if (rawUrl.startsWith("jdbc:odps:")) {
return ODPS_DRIVER;
} else if (rawUrl.startsWith("jdbc:hsqldb:")) {
return "org.hsqldb.jdbcDriver";
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