Skip to content

Allow spaces while parsing Table Type - #96

Merged
justing-bq merged 1 commit into
apache-odbcfrom
tableTypeSpaces
Aug 26, 2025
Merged

Allow spaces while parsing Table Type#96
justing-bq merged 1 commit into
apache-odbcfrom
tableTypeSpaces

Conversation

@justing-bq

Copy link
Copy Markdown

This PR allows for users to include spaces in their TableType value when calling SQLTables(). This is necessary because one of our table types is "BASE TABLE".

Before this change "BASE TABLE" would be internally converted to "BASETABLE" which resulted in SQLTables returning 0 results.

@alinaliBQ alinaliBQ left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

LGTM. The unit tests arrow-arrow-odbc-spi-impl-test.exe are passing on my end

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Good catch. I remember this bug. When I was testing before, I put down "BASE TABLE" and it didn't work, so I used single quotes to wrap "'BASE TABLE'" which worked, so I thought it was fine. But by checking SQLTables doc, each keyword can be quoted or unquoted, so this is a bug for sure.
It's good that we are fixing this now

@justing-bq
justing-bq merged commit 16f917b into apache-odbc Aug 26, 2025
20 of 24 checks passed
@justing-bq
justing-bq deleted the tableTypeSpaces branch August 26, 2025 20:09
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.

3 participants