Skip to content

Commit

Permalink
Driver configuration is configured through json,
Browse files Browse the repository at this point in the history
Support driver attribute configuration.
  • Loading branch information
Chat2DB-Pro committed Nov 12, 2023
1 parent c4c9efa commit 2e31890
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,15 @@ public static Connection getConnection(String url, Properties info, DriverConfig

public static DriverPropertyInfo[] getProperty(DriverConfig driver)
throws SQLException {
if (driver == null) {
if (Objects.isNull(driver)) {
return null;
}
DriverEntry driverEntry = DRIVER_ENTRY_MAP.get(driver.getJdbcDriver());
if (driverEntry == null) {
driverEntry = getJDBCDriver(driver);
}
try {
String url = driver.getUrl() == null ? "" : driver.getUrl();
String url = Objects.isNull(driver.getUrl()) ? "" : driver.getUrl();
return driverEntry.getDriver().getPropertyInfo(url, null);
} catch (Exception var7) {
return null;
Expand Down

0 comments on commit 2e31890

Please sign in to comment.