Skip to content

Allow to ignore unsupported connection options#250

Merged
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:unsupported_options
Jun 4, 2025
Merged

Allow to ignore unsupported connection options#250
staticlibs merged 1 commit intoduckdb:mainfrom
staticlibs:unsupported_options

Conversation

@staticlibs
Copy link
Collaborator

Currently driver performs strict checks on the user-specified connection options. If stray options are passed - exception is thrown on connect.

This is considered to be a good feature, to prevent accidental typos in option names. But in some cases user does not have full control over the options passed to driver by other tools.

This change adds new boolean connection property
jdbc_ignore_unsupported_options, when it is enabled - all unsupported connection options are ignored.

When used with external tools, it is intended to be set in connection string like this:

jdbc:duckdb:;jdbc_ignore_unsupported_options=true;

Testing: new test added.

Fixes: #232

Currently driver performs strict checks on the user-specified connection
options. If stray options are passed - exception is thrown on connect.

This is considered to be a good feature, to prevent accidental typos in
option names. But in some cases user does not have full control over the
options passed to driver by other tools.

This change adds new boolean connection property
`jdbc_ignore_unsupported_options`, when it is enabled - all unsupported
connection options are ignored.

When used with external tools, it is intended to be set in connection
string like this:

```
jdbc:duckdb:;jdbc_ignore_unsupported_options=true;
```

Testing: new test added.

Fixes: duckdb#232
@staticlibs staticlibs force-pushed the unsupported_options branch from 2ea59fe to b6cc97c Compare June 4, 2025 11:16
@staticlibs staticlibs merged commit 5243e14 into duckdb:main Jun 4, 2025
19 of 20 checks passed
@staticlibs staticlibs deleted the unsupported_options branch June 4, 2025 12:52
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Jun 6, 2025
This change restores the contents of duckdb#250 that were inadvertently
removed in duckdb#247.
staticlibs added a commit that referenced this pull request Jun 6, 2025
This change restores the contents of #250 that were inadvertently
removed in #247.
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Jun 6, 2025
This change restores the contents of duckdb#250 that were inadvertently
removed in duckdb#247.
staticlibs added a commit to staticlibs/duckdb-java that referenced this pull request Jun 16, 2025
This is a backport of the PR duckdb#250 to `v1.3-ossivalis` stable branch.

Currently driver performs strict checks on the user-specified connection
options. If stray options are passed - exception is thrown on connect.

This is considered to be a good feature, to prevent accidental typos in
option names. But in some cases user does not have full control over the
options passed to driver by other tools.

This change adds new boolean connection property
`jdbc_ignore_unsupported_options`, when it is enabled - all unsupported
connection options are ignored.

When used with external tools, it is intended to be set in connection
string like this:

```
jdbc:duckdb:;jdbc_ignore_unsupported_options=true;
```

Testing: new test added.

Fixes: duckdb#232
staticlibs added a commit that referenced this pull request Jun 16, 2025
This is a backport of the PR #250 to `v1.3-ossivalis` stable branch.

Currently driver performs strict checks on the user-specified connection
options. If stray options are passed - exception is thrown on connect.

This is considered to be a good feature, to prevent accidental typos in
option names. But in some cases user does not have full control over the
options passed to driver by other tools.

This change adds new boolean connection property
`jdbc_ignore_unsupported_options`, when it is enabled - all unsupported
connection options are ignored.

When used with external tools, it is intended to be set in connection
string like this:

```
jdbc:duckdb:;jdbc_ignore_unsupported_options=true;
```

Testing: new test added.

Fixes: #232
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Option to allow more flexible ignoring of pass through options

1 participant