-
Notifications
You must be signed in to change notification settings - Fork 53
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
calls to SQLBindParameter causes libiodbc to return SQL_INVALID_HANDLE
on Big Sur
#85
Comments
Function SQLBindParameter (from libiodbc ) could not return SQL_INVALID_HANDLE because such case isn't existed in the source code. Line 445 in e2375b6
Attach here your log file for issue. |
Let me clarify, I believe when calling Line 654 in e2375b6
I don't have logs directly from libiodbc, only logs from my driver which does not show SQLBindParameter being called. If you could kindly point me to a place where I can find a way to get logs from libiodbc (similar to ODBC tracing on iODBC Application), it would be greatly appreciated. Here is a simplified log (with added message) from my driver:
|
@alinaliBQ — The "ODBC Tracing on Mac OS X" section of this article should provide the detailed instructions you want... |
@TallTed Thanks for the link! I have shared it with my colleagues working with macOS who might find it useful. However, the instructions are for OpenLink ODBC Administrator.app and doesn't explicitly say that it can also work in an environment where only Currently my hands are tied with other items to work on, but when I do get a chance to try it out, I will post updates here. |
@alinaliBQ — The trace functionality described is in the iODBC libraries, not in the Administrator app. You should find that editing or adding the described stanzas to the active Given the extra details you've just provided — that "During [your] tests, the issue with Please do be aware that Homebrew and other command-line tools can use the libraries installed with the iODBC Administrator.app (equivalent to the OpenLink ODBC Administrator.app), so this may be your fastest path to success, given your latest. I'm sure our developers will also make more rapid progress analyzing the issue, given your latest. |
@TallTed Thank you for the update and the information. I have now updated the GitHub issue to clarify that the issue does not occur with OpenLink ODBC Administrator.app. |
You could do next:
but it may not help much you for detailed analyze issue
|
@smalinin Thanks so much for the detailed steps. Recently I have been assigned to also work on another project, and the rest of the team likely won't be able to have time to investigate for this ticket in the near future given the timelines we have. This issue is not a blocking issue with our driver. I think the issue likely has to do with discrepancies between Homebrew package for Big Sur and the repository. |
Our driver does not support
SQLBindParameter
, so we defineSQLBindParameter
to returnSQL_ERROR
save a statement diagnostic message saying that "SQLBindParameter is not supported", but calls to SQLBindParameter causes libiodbc to returnSQL_INVALID_HANDLE
on Big Sur GitHub instance.Steps to reproduce
libiodbc
on Big Sur GitHub instance.SQLBindParameter
.SQL_INVALID_HANDLE
is returned fromSQLBindParameter
.Looking at the logs,
libiodbc
never callsSQLBindParameter
using our driver, and returnsSQL_INVALID_HANDLE
directly.Expected outcome:
SQL_ERROR
is returned as our driver has definedSQL_ERROR
to be returned fromSQLBindParameter
. And application is able to get statement diagnostic message saying that "SQLBindParameter
is not supported". On Linux and Windows (not using iODBC), the correct behavior is observed. On macOS Ventura with iODBC application (OpenLink ODBC Administrator.app) installed, this correct behavior is observed. I'm unsure what had caused libiodbc to have undefined behavior on macOS Big Sur.More context: The driver built on Big Sur is tested on Big Sur GitHub instance only. The driver built on Ventura is tested on Ventura only.
The text was updated successfully, but these errors were encountered: