fixed testcase

This commit is contained in:
高铁
2016-03-27 22:06:38 +08:00
parent 32843a1711
commit 8212d45dc6
8 changed files with 73 additions and 27 deletions
@@ -357,6 +357,10 @@ public final class JdbcUtils implements JdbcConstants {
}
public static String getDriverClassName(String rawUrl) throws SQLException {
if (rawUrl == null) {
return null;
}
if (rawUrl.startsWith("jdbc:derby:")) {
return "org.apache.derby.jdbc.EmbeddedDriver";
} else if (rawUrl.startsWith("jdbc:mysql:")) {