Skip to content

Commit

Permalink
don't pass default schema name to schema filter
Browse files Browse the repository at this point in the history
  • Loading branch information
guenp committed Aug 19, 2024
1 parent c619067 commit eebef3a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/statement/statement.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -389,8 +389,7 @@ SQLRETURN SQL_API SQLTables(SQLHSTMT statement_handle, SQLCHAR *catalog_name, SQ

// String search pattern for schema name
auto schema_n = OdbcUtils::ReadString(schema_name, name_length2);
string schema_filter = OdbcUtils::ParseStringFilter("\"TABLE_SCHEM\"", schema_n, hstmt->dbc->sql_attr_metadata_id,
string(DEFAULT_SCHEMA));
string schema_filter = OdbcUtils::ParseStringFilter("\"TABLE_SCHEM\"", schema_n, hstmt->dbc->sql_attr_metadata_id);

// String search pattern for table name
auto table_n = OdbcUtils::ReadString(table_name, name_length3);
Expand Down

0 comments on commit eebef3a

Please sign in to comment.