I use OCI_ENV_THREADED | OCI_ENV_CONTEXT and global error handler.
I found issue witch error handling.
I have mismatch in SQL query.
When I call OCI_FetchNext it raises global error handler but when I call
OCI_GetLastError() it returns NULL.
I investigated this issue and found many calls of OCI_RESULT(err); in
resultset.c where err == TRUE and res == FALSE
Call of OCI_RESULT(err) resets raise flag in error so OCI_GetLastError()
returns NULL.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
Hi Vincent,
I use OCI_ENV_THREADED | OCI_ENV_CONTEXT and global error handler.
I found issue witch error handling.
I have mismatch in SQL query.
When I call OCI_FetchNext it raises global error handler but when I call
OCI_GetLastError() it returns NULL.
I investigated this issue and found many calls of OCI_RESULT(err); in
resultset.c where err == TRUE and res == FALSE
Call of OCI_RESULT(err) resets raise flag in error so OCI_GetLastError()
returns NULL.
Hi,
SVN update :)
Hi,
Problem fixed.
Thanks!