Skip to content

Conversation

guenp
Copy link

@guenp guenp commented Mar 30, 2024

Fixes motherduckdb/duckdb-power-query-connector#12

Power Query escapes an underscore with a backslash, so the query generated by SQLGetColumns for a table with a name with an underscore in it (e.g. 'table_name') returns a filter WHERE "TABLE_NAME" LIKE 'table\_name' which returns zero rows. This PR adds ESCAPE '\' to the filter(s).

@Mytherin Mytherin requested a review from maiadegraaf April 2, 2024 09:07
@Mytherin Mytherin marked this pull request as ready for review April 2, 2024 09:47
Copy link
Collaborator

@Mytherin Mytherin left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks! LGTM

@Mytherin Mytherin merged commit 3afa934 into duckdb:main Apr 2, 2024
@guenp guenp deleted the guenp/add-escape-to-filter branch April 2, 2024 19:56
github-actions bot pushed a commit to duckdb/duckdb-r that referenced this pull request Apr 5, 2024
Merge pull request duckdb/duckdb#11470 from Mytherin/deletememoryusage
Merge pull request duckdb/duckdb#11476 from carlopi/fix_lzma
Merge pull request duckdb/duckdb#11432 from guenp/guenp/add-escape-to-filter
Merge pull request duckdb/duckdb#11378 from lnkuiper/read_json_defer_allocation
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

"[Expression.Error] We cannot convert the specified value to the specified type" when loading data from a table with "_" in the name
2 participants