mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-14 07:06:59 +08:00
fix: properties not work when use custom driver
This commit is contained in:
@@ -79,6 +79,9 @@ public class CustomDatabaseConnectionFactory implements DatabaseConnectionFactor
|
||||
Properties info = new Properties();
|
||||
info.put("user", context.getUsername());
|
||||
info.put("password", context.getPassword());
|
||||
if (context.getProperties() != null && !context.getProperties().isEmpty()) {
|
||||
info.putAll(context.getProperties());
|
||||
}
|
||||
return driver.connect(jdbcUrl, info);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user