Skip to content

Commit

Permalink
don't filter by schema because schemas not supported
Browse files Browse the repository at this point in the history
  • Loading branch information
artpaul committed Aug 4, 2017
1 parent edf6fff commit e56c33e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
1 change: 1 addition & 0 deletions driver/connection.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ void Connection::init()
session.setHost(server);
session.setPort(port);
session.setKeepAlive(true);
session.setTimeout(Poco::Timespan(30, 0));
session.setKeepAliveTimeout(Poco::Timespan(86400, 0));

/// TODO Timeout.
Expand Down
4 changes: 2 additions & 2 deletions driver/odbc.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -682,8 +682,8 @@ SQLTables(HSTMT statement_handle,

if (catalog_name_length)
query << " AND TABLE_CAT LIKE '" << stringFromSQLChar(catalog_name, catalog_name_length) << "'";
if (schema_name_length)
query << " AND TABLE_SCHEM LIKE '" << stringFromSQLChar(schema_name, schema_name_length) << "'";
//if (schema_name_length)
// query << " AND TABLE_SCHEM LIKE '" << stringFromSQLChar(schema_name, schema_name_length) << "'";
if (table_name_length)
query << " AND TABLE_NAME LIKE '" << stringFromSQLChar(table_name, table_name_length) << "'";
//if (table_type_length)
Expand Down

0 comments on commit e56c33e

Please sign in to comment.