Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

ODBC: Remove catalog support from driver #566

Conversation

jordanw-bq
Copy link
Contributor

Issue #, if available: #565

Description of changes:

  • return error when catalogs/schemas are queried
  • test & info call fixes

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@@ -729,6 +734,15 @@ ESAPI_Tables(HSTMT hstmt, const SQLCHAR *catalog_name_sql,
std::string query;
GenerateTableQuery(query, flag, table_name, result_type, table_valid);

// Get list of columns with SELECT * query since columns doesn't match
Copy link
Contributor

@rupal-bq rupal-bq Jul 11, 2020

Choose a reason for hiding this comment

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

IIRC, this won't be applicable here since SQLTables is using SHOW TABLES query which doesn't have column information.

Copy link
Contributor

Choose a reason for hiding this comment

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

And list_of_columns isn't used in this function afterwards

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Misplaced changes; will remove

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Removed

@chloe-zh chloe-zh added the ODBC label Jul 12, 2020
@chloe-zh chloe-zh merged commit 4888d37 into opendistro-for-elasticsearch:develop Jul 13, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants