Browse Source

druid使用改过包名的hsql问题

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

5
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:")) { } else if (rawUrl.startsWith("jdbc:odps:")) {
return ODPS_DRIVER; return ODPS_DRIVER;
} else if (rawUrl.startsWith("jdbc:hsqldb:")) { } else if (rawUrl.startsWith("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"; 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