Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Try to make some complex queries work in ODBC backend #1182

Merged
merged 2 commits into from
Jan 24, 2025

Conversation

vadz
Copy link
Member

@vadz vadz commented Nov 17, 2024

Describe the statement once again after calling execute() if we had failed to describe it before because SQLNumResultCols() returned 0.

Describe the statement once again after calling execute() if we had
failed to describe it before because SQLNumResultCols() returned 0, as
it may happen with some complex queries and SQL Server used via ODBC
backend.

Closes SOCI#1151.

See SOCI#1182.

Co-Authored-By: Vadim Zeitlin <[email protected]>
@vadz vadz force-pushed the odbc-complex-query branch from 6cca369 to 48a5a6c Compare November 17, 2024 18:44
@vadz vadz marked this pull request as ready for review November 17, 2024 18:44
It looks like this function must always be called after a (successful)
call to describe() and it is not called from anywhere else, so it seems
wrong to both require and allow calling it independently -- just call it
from describe() itself.

No real changes, this function has never been part of public API, so
hopefully nobody was using it.
@vadz
Copy link
Member Author

vadz commented Jan 20, 2025

@joshua-vanitha-15639 Please let me know if you have any comments, otherwise I'll merge this soon.

@vadz vadz merged commit 798b513 into SOCI:master Jan 24, 2025
16 checks passed
@vadz vadz deleted the odbc-complex-query branch January 24, 2025 15:48
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.

2 participants