Merge pull request #190 from openwide-java/fix-properties-copy

Fix copy of properties when using a jdbc url.
pull/201/head
Brett Wooldridge 10 years ago
commit df9821759f

@ -35,7 +35,8 @@ public final class DriverDataSource implements DataSource
{
try {
this.jdbcUrl = jdbcUrl;
this.driverProperties = new Properties(properties);
this.driverProperties = new Properties();
this.driverProperties.putAll(properties);
if (username != null) {
driverProperties.put("user", driverProperties.getProperty("user", username));
}

@ -35,7 +35,8 @@ public final class DriverDataSource implements DataSource
{
try {
this.jdbcUrl = jdbcUrl;
this.driverProperties = new Properties(properties);
this.driverProperties = new Properties();
this.driverProperties.putAll(properties);
if (username != null) {
driverProperties.put("user", driverProperties.getProperty("user", username));
}

Loading…
Cancel
Save