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

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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.

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