Fixed#163 do not require driver class name when JDBC URL is specified, newer drivers following the service registration model will be automatically located by the DriverManager.

pull/192/head
Brett Wooldridge 10 years ago
parent bb33d91e15
commit 89b3ce00ee

@ -664,10 +664,6 @@ public class HikariConfig implements HikariConfigMBean
logger.error("when specifying driverClassName, jdbcUrl must also be specified");
throw new IllegalStateException("when specifying driverClassName, jdbcUrl must also be specified");
}
else if (jdbcUrl != null && driverClassName == null) {
logger.error("when specifying jdbcUrl, driverClassName must also be specified");
throw new IllegalStateException("when specifying jdbcUrl, driverClassName must also be specified");
}
else if (driverClassName != null && dataSourceClassName != null) {
logger.error("both driverClassName and dataSourceClassName are specified, one or the other should be used");
throw new IllegalStateException("both driverClassName and dataSourceClassName are specified, one or the other should be used");

@ -664,10 +664,6 @@ public class HikariConfig implements HikariConfigMBean
logger.error("when specifying driverClassName, jdbcUrl must also be specified");
throw new IllegalStateException("when specifying driverClassName, jdbcUrl must also be specified");
}
else if (jdbcUrl != null && driverClassName == null) {
logger.error("when specifying jdbcUrl, driverClassName must also be specified");
throw new IllegalStateException("when specifying jdbcUrl, driverClassName must also be specified");
}
else if (driverClassName != null && dataSourceClassName != null) {
logger.error("both driverClassName and dataSourceClassName are specified, one or the other should be used");
throw new IllegalStateException("both driverClassName and dataSourceClassName are specified, one or the other should be used");

Loading…
Cancel
Save