Skip to content

Commit f9d3470

Browse files
committed
DuckLake options override fix (1.3)
This is a backport of the PR duckdb#287 to `v1.3-ossivalis` stable branch. With the changes introduced in duckdb#276 the `jdbc:duckdb:ducklake:...` URLs have the special handling: `jdbc_pin_db` and `jdbc_stream_results` options are applied to them automatically. This behaviour was supposed to be overridable with URL or `Properties` but by mistake incorrect method was used for override check. And as DuckLake is still not available in the `main` branch, there is no test coverage for this and the problem got into `1.3.1.0` update. Fixes: duckdb#283
1 parent 0c69d12 commit f9d3470

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/org/duckdb/JdbcUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ static String removeOption(Properties props, String opt, String defaultVal) {
3232
}
3333

3434
static void setDefaultOptionValue(Properties props, String opt, Object value) {
35-
if (props.contains(opt)) {
35+
if (props.containsKey(opt)) {
3636
return;
3737
}
3838
props.put(opt, value);

0 commit comments

Comments
 (0)