From fbd3c69144359cdd8be92d4c0aa2ee5c948f2ccf Mon Sep 17 00:00:00 2001 From: Alex Kasko Date: Fri, 20 Jun 2025 16:39:10 +0100 Subject: [PATCH] DuckLake options override fix With the changes introduced in #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: #283 --- src/main/java/org/duckdb/JdbcUtils.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/main/java/org/duckdb/JdbcUtils.java b/src/main/java/org/duckdb/JdbcUtils.java index 2f396f42e..d83d960ef 100644 --- a/src/main/java/org/duckdb/JdbcUtils.java +++ b/src/main/java/org/duckdb/JdbcUtils.java @@ -32,7 +32,7 @@ static String removeOption(Properties props, String opt, String defaultVal) { } static void setDefaultOptionValue(Properties props, String opt, Object value) { - if (props.contains(opt)) { + if (props.containsKey(opt)) { return; } props.put(opt, value);