mirror of
https://github.com/vran-dev/databasir.git
synced 2025-09-20 02:35:40 +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();
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user