Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Ignore UID and PWD options from Excel #61

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

staticlibs
Copy link
Contributor

When the ODBC data source is used from Excel/Power Query, additional options may be added to connection string automatically without showing them to user. It was discovered in #58 that UID and PWD options are added when user has credentials registered for this DSN in Excel.

DuckDB driver does not recognize these options and currently cannot process them properly (see #59 for details). However the driver knows about possible trusted_connection Excel/Power Query option and ignores it successfully. It is proposed to also add UID and PWD to the existing ignore list.

In the light of #60, that fixes the handling for unsupported options, this change is not strictly necessary, but it still may be better to consistently ignore all unneeded Excel/Power Query options and to not register diagnostic messages for them.

Testing: existing Excel/Power Query ignore list test is extended to include new options.

Fixes: #58

When the ODBC data source is used from Excel/Power Query, additional
options may be added to connection string automatically without showing
them to user. It was discovered in duckdb#58 that `UID` and `PWD` options are
added when user has credentials registered for this DSN in Excel.

DuckDB driver does not recognize these options and currently cannot
process them properly (see duckdb#59 for details). However the driver
knows about possible `trusted_connection` Excel/Power Query option and
ignores it successfully. It is proposed to also add `UID` and `PWD`
to the existing ignore list.

In the light of duckdb#60, that fixes the handling for unsupported options,
this change is not strictly necessary, but it still may be better to
consistently ignore all unneeded Excel/Power Query options and to not
register diagnostic messages for them.

Testing: existing Excel/Power Query ignore list test is extended to
include new options.

Fixes: duckdb#58
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.

DSN is not resolved when called from Excel
1 participant