Fixed #308 try harder at resolving the driver by various means when driverClassName and jdbcUrl are both specified.

pull/323/head
Brett Wooldridge 10 years ago
parent 9c80913d1f
commit fc23bccf01

@ -32,7 +32,7 @@ import org.slf4j.LoggerFactory;
public final class DriverDataSource implements DataSource
{
private final Logger LOGGER = LoggerFactory.getLogger(ConcurrentBag.class);
private final Logger LOGGER = LoggerFactory.getLogger(DriverDataSource.class);
private final String jdbcUrl;
private final Properties driverProperties;
@ -60,6 +60,7 @@ public final class DriverDataSource implements DataSource
Driver d = drivers.nextElement();
if (d.getClass().getName().equals(driverClassName)) {
this.driver = d;
break;
}
}

Loading…
Cancel
Save