Skip to content

Commit

Permalink
[#676] feat(jdbc): Support jdbc operations in JDBC catalog.
Browse files Browse the repository at this point in the history
  • Loading branch information
Clearvive authored and Clearvive committed Nov 17, 2023
1 parent d878628 commit 8b0f23f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -72,4 +72,8 @@ public JdbcConfig(Map<String, String> properties) {
loadFromMap(properties, k -> true);
assert null != getJdbcUrl();
}

public Map<String, String> getAllProperties() {
return getConfigsWithPrefix("");
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -57,8 +57,7 @@ private static DataSource createDBCPDataSource(JdbcConfig jdbcConfig) throws Exc

private static Properties getProperties(JdbcConfig jdbcConfig) {
Properties properties = new Properties();
Map<String, String> configsWithPrefix = jdbcConfig.getConfigsWithPrefix("");
properties.putAll(configsWithPrefix);
properties.putAll(jdbcConfig.getAllProperties());
return properties;
}

Expand Down

0 comments on commit 8b0f23f

Please sign in to comment.