Skip to content

Conversation

@rscales
Copy link

@rscales rscales commented Jul 28, 2025

Implement test cases for SQLNumResultCols

Comment on lines 2403 to 2410
TEST_F(FlightSQLODBCMockTestBase, SQLNumResultColsReturnsColumnsOnSelect) {
this->connect();
this->CreateTestTables();

SQLSMALLINT columnCount = 0;
SQLSMALLINT expectedValue = 3;
SQLWCHAR sqlQuery[] = L"SELECT * FROM TestTable LIMIT 1;";
SQLINTEGER queryLength = static_cast<SQLINTEGER>(wcslen(sqlQuery));

Choose a reason for hiding this comment

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

Similar to SQLRowCount, let's run the test on both remote and mock server

Copy link

@alinaliBQ alinaliBQ left a comment

Choose a reason for hiding this comment

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

LGTM

@rscales rscales merged commit 328485f into apache-odbc Jul 29, 2025
15 checks passed
@alinaliBQ alinaliBQ deleted the sql-num-result-cols-test branch August 28, 2025 17:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants