Skip to content

Commit

Permalink
ff
Browse files Browse the repository at this point in the history
  • Loading branch information
maiadegraaf committed Sep 9, 2024
1 parent 8bc73c1 commit a9b6837
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
10 changes: 5 additions & 5 deletions test/tests/catalog_functions.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -197,12 +197,12 @@ static void TestSQLTablesSchema(HSTMT &hstmt) {
DATA_CHECK(hstmt, 4, "TABLE");

// No schema name should give all tables, including main schema
EXECUTE_AND_CHECK("SQLTables", SQLTables, hstmt, nullptr, 0, ConvertToSQLCHAR(""), SQL_NTS,
ConvertToSQLCHAR("%"), SQL_NTS, ConvertToSQLCHAR("TABLE"), SQL_NTS);
EXECUTE_AND_CHECK("SQLTables", SQLTables, hstmt, nullptr, 0, ConvertToSQLCHAR(""), SQL_NTS, ConvertToSQLCHAR("%"),
SQL_NTS, ConvertToSQLCHAR("TABLE"), SQL_NTS);

std::vector<std::array<std::string, 4>> expected_data = {
{"test_table_2", "ducks"}, {"bool_table", "main"}, {"bytea_table", "main"},
{"interval_table", "main"}, {"lo_test_table", "main"}, {"test_table_1", "main"}};
std::vector<std::array<std::string, 4>> expected_data = {{"test_table_2", "ducks"}, {"bool_table", "main"},
{"bytea_table", "main"}, {"interval_table", "main"},
{"lo_test_table", "main"}, {"test_table_1", "main"}};

for (int i = 0; i < expected_data.size(); i++) {
SQLRETURN ret = SQLFetch(hstmt);
Expand Down
2 changes: 1 addition & 1 deletion test/tests/select.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ TEST_CASE("Test Select Statement", "[odbc]") {
// Allocate a statement handle
EXECUTE_AND_CHECK("SQLAllocHandle (HSTMT)", SQLAllocHandle, SQL_HANDLE_STMT, dbc, &hstmt);

// Execute a simple query
// Execute a simple query
EXECUTE_AND_CHECK("SQLExecDirect (SELECT 1 UNION ALL SELECT 2)", SQLExecDirect, hstmt,
ConvertToSQLCHAR("SELECT 1 UNION ALL SELECT 2"), SQL_NTS);

Expand Down

0 comments on commit a9b6837

Please sign in to comment.