Skip to content

Conversation

@alinaliBQ
Copy link
Contributor

@alinaliBQ alinaliBQ commented Nov 3, 2025

Rationale for this change

Make ODBC return number of affected rows as -1 which to BI tools means number of affected rows is unknown. This is because ODBC only supports select statement and doesn't support queries that affect rows.

What changes are included in this PR?

  • SQLRowCount & tests

Are these changes tested?

Tested locally on MSVC

Are there any user-facing changes?

N/A

@alinaliBQ alinaliBQ force-pushed the gh-47713-sql-row-count branch from 4fcdc67 to 2120315 Compare November 10, 2025 19:43
@alinaliBQ alinaliBQ changed the title GH-47713: [C++][FlightRPC] WIP: ODBC return number of affected rows GH-47713: [C++][FlightRPC] ODBC return number of affected rows Nov 10, 2025
@alinaliBQ
Copy link
Contributor Author

@lidavidm this draft PR is ready for review! Please have a look

@github-actions github-actions bot added awaiting merge Awaiting merge and removed awaiting review Awaiting review labels Nov 28, 2025
@alinaliBQ alinaliBQ force-pushed the gh-47713-sql-row-count branch from 2120315 to 67db4e7 Compare December 3, 2025 23:02
CheckStringColumnW(this->stmt, 2, L"One");
CheckIntColumn(this->stmt, 3, 3);

ASSERT_EQ(SQL_SUCCESS, SQLRowCount(this->stmt, 0));
Copy link
Member

Choose a reason for hiding this comment

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

nit, but can we write nullptr for nullptr and not use 0?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

yup, fixed

@github-actions github-actions bot added awaiting changes Awaiting changes and removed awaiting merge Awaiting merge labels Dec 4, 2025
@alinaliBQ alinaliBQ force-pushed the gh-47713-sql-row-count branch from 67db4e7 to b22c359 Compare December 4, 2025 21:10
@github-actions github-actions bot added awaiting change review Awaiting change review and removed awaiting changes Awaiting changes labels Dec 4, 2025
Update doc

Co-Authored-By: alinalibq <[email protected]>
@alinaliBQ alinaliBQ force-pushed the gh-47713-sql-row-count branch from b22c359 to aed5b0e Compare December 6, 2025 00:24
@alinaliBQ alinaliBQ marked this pull request as ready for review December 6, 2025 00:24
@lidavidm lidavidm merged commit 082377a into apache:main Dec 8, 2025
46 checks passed
@lidavidm lidavidm removed the awaiting change review Awaiting change review label Dec 8, 2025
@github-actions github-actions bot added the awaiting merge Awaiting merge label Dec 8, 2025
@conbench-apache-arrow
Copy link

After merging your PR, Conbench analyzed the 3 benchmarking runs that have been run so far on merge-commit 082377a.

There were no benchmark performance regressions. 🎉

The full Conbench report has more details. It also includes information about 5 possible false positives for unstable benchmarks that are known to sometimes produce them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants