Fixes #1137 support changing user/password at runtime for DriverDataSource-wrapped driver connections.

pull/1161/head
Brett Wooldridge 7 years ago
parent 851e2d4592
commit 8921bb08c8

@ -125,7 +125,9 @@ public final class DriverDataSource implements DataSource
final Properties cloned = (Properties) driverProperties.clone();
if (username != null) {
cloned.put("user", username);
cloned.put("username", username);
if (cloned.containsKey("username")) {
cloned.put("username", username);
}
}
if (password != null) {
cloned.put("password", password);

Loading…
Cancel
Save