| 81 | // GH-49702: TODO Disabled on Linux due to BlockingQueue issue |
| 82 | #ifndef __linux__ |
| 83 | TEST_F(TablesMockTest, SQLTablesTestGetMetadataForAllCatalogs) { |
| 84 | SQLWCHAR empty[] = {0}; |
| 85 | ASSIGN_SQLWCHAR_ARR(SQL_ALL_CATALOGS_W, L"%"); |
| 86 | std::wstring expected_catalog_name = std::wstring(L"main"); |
| 87 | |
| 88 | // Get Catalog metadata |
| 89 | ASSERT_EQ(SQL_SUCCESS, SQLTables(this->stmt, SQL_ALL_CATALOGS_W, SQL_NTS, empty, |
| 90 | SQL_NTS, empty, SQL_NTS, empty, SQL_NTS)); |
| 91 | |
| 92 | ValidateFetch(this->stmt, SQL_SUCCESS); |
| 93 | |
| 94 | CheckStringColumnW(this->stmt, 1, expected_catalog_name); |
| 95 | CheckNullColumnW(this->stmt, 2); |
| 96 | CheckNullColumnW(this->stmt, 3); |
| 97 | CheckNullColumnW(this->stmt, 4); |
| 98 | CheckNullColumnW(this->stmt, 5); |
| 99 | |
| 100 | ValidateFetch(this->stmt, SQL_NO_DATA); |
| 101 | } |
| 102 | #endif // __linux__ |
| 103 | |
| 104 | TEST_F(TablesMockTest, SQLTablesTestGetMetadataForNamedCatalog) { |
nothing calls this directly
no test coverage detected