-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[AD-771] fix issue of JDBC not returning tables (#37)
### Summary <!--- General summary / title --> Make JDBC return tables/columns to ODBC ### Description <!--- Details of what you changed --> * Tableau passes catalog, schema, table name, and table type as null pointers to SQLTables. PowerBI passes catalog, schema, and table name as null pointers to SQLTables. PowerBI passes column name as null pointers to SQLColumns. Therefore, if null is passed in ODBC as table pattern, "%" needs to be passed as table pattern to JDBC. Same thing with null being passed to ODBC as column name pattern. ### Related Issue <!--- Link to issue where this is tracked --> https://bitquill.atlassian.net/browse/AD-771 * [AD-771] fix merge issues * [AD-771] resolve code review comments * move comments for SQLTables and SQLColumns from odbc.h to odbc.cpp. * refactor code to use `get_value_or` when retrieving values for table and column name
- Loading branch information
Showing
2 changed files
with
45 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters