-
Notifications
You must be signed in to change notification settings - Fork 119
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
OCI_GetSqlIdentifier() returns invalid values for Scrollable Statements when called more than once #329
Comments
Hi, To be honest, I have never tried this workflow (get sql identifier on scrollable cursors). Regards, Vincent |
Hi, I did have a look at it. @cjbj It seems that querying the attribute OCI_ATTR_SQL_ID on the OCI_HTYPE_STMT after a executing statement wirh mode flags OCI_STMT_SCROLLABLE_READONLY has a weird behavior
@unficyp I guess if OCILIB was querying the SQL ID only after the first execution, it will solve the issue (as OCI client has a weird behavior for subsequent calls). I will create a v4.7.7 bfranch with this change. Regards, Vincent |
Created v4.7.7 branch with the optimization that computes the SQL ID only once. I am still questioning the OCI client behavior (the issue could be in OCILIB usage of the OCI API but regarding current documentation of OCI API, I am more thinking that the issue is on OCI side). Regards, Vincent |
@vrogier an OCI testcase would help us. |
@unficyp What you are doing with scrollable cursors. How many rows are in your queries? How long do you hold the cursors open? I'm interested to know your usage & design pattern. Sure scrollable cursors have their place, but they do tie up server resources. |
@cjbj Here it is :) I aggree this worflow might not make sense. But is this behavior an expected one ? |
@cjbj i discovered this by accident while playing around with prepared statements and resultsets - i don't have any usecase - yet |
We'll send the testcase to our bug-analysis group and let them handle it. |
Hi,
using 4.7.6, i noticed a strange behaviour with GetSqlIdentifier and ocilib::Statement::FetchScrollable.
Demo:
In m environment i get:
which is correct. If i enable fetch-mode scrollable (line st.SetFetchMode(ocilib::Statement::FetchScrollable);) i get:
sql_id_2 looks wrong - shouldn't this be the same as sql_id_1 ?
Do i miss something ?
thx & regards,
gerald
The text was updated successfully, but these errors were encountered: