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

got code SQL_INVALID_HANDLE when SQLGetData called #426

Open
superceix opened this issue Aug 28, 2023 · 0 comments
Open

got code SQL_INVALID_HANDLE when SQLGetData called #426

superceix opened this issue Aug 28, 2023 · 0 comments

Comments

@superceix
Copy link

As the title suggests, I encountered the SQL_INVALID_HANDLE error from SQLGetData function. It appears that the Driver::call function is not thread safe.

To address this issue, I attempted to add a return code in order to obtain the error code -99:
image

In my program, multiple threads call ODBC functions simultaneously. Therefore, I suspect that when one thread is executing SQLGetData, and another thread is creating a new session, the 'descendants' variable is not protected by thread safety measures.

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

No branches or pull requests

1 participant