fix: properties not work when use custom driver
This commit is contained in:
parent
3450947b0f
commit
799bb67a1a
|
@ -79,6 +79,9 @@ public class CustomDatabaseConnectionFactory implements DatabaseConnectionFactor
|
||||||
Properties info = new Properties();
|
Properties info = new Properties();
|
||||||
info.put("user", context.getUsername());
|
info.put("user", context.getUsername());
|
||||||
info.put("password", context.getPassword());
|
info.put("password", context.getPassword());
|
||||||
|
if (context.getProperties() != null && !context.getProperties().isEmpty()) {
|
||||||
|
info.putAll(context.getProperties());
|
||||||
|
}
|
||||||
return driver.connect(jdbcUrl, info);
|
return driver.connect(jdbcUrl, info);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue