Navigation Menu

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

Error isc_bad_req_handle at isc_commit_transaction call [CORE1515] #1931

Closed
firebird-automations opened this issue Oct 14, 2007 · 5 comments
Closed

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @hvlad

Sequence of API calls below leads to isc_bad_req_handle error

isc_dsql_execute2 [tra_handle=$00000002, stmt_handle=$00000003, dialect=3]
isc_dsql_free_statement [stmt_handle=$00000003, option="DSQL_close"]
isc_dsql_free_statement [stmt_handle=$00000003, option="DSQL_drop"]
isc_commit_transaction [tra_handle=$00000002]

Test case by Dmitry Arefiev

Commits: d1ade42

@firebird-automations
Copy link
Collaborator Author

Commented by: @hvlad

In the call's sequence above all thee isc_dsql_XXX calls was defered and executed (sent over the wire) only when isc_start_transaction was called. But isc_dsql_free_statement with DSQL_drop option already deleted statement (while added op_free_statement packet to the deferred packets queue). Therefore when responce on op_execute was handled statement was not exists and isc_bad_req_handle error is raised.

The fix delayed statement deletion until handling of responce on op_free_statement packet

@firebird-automations
Copy link
Collaborator Author

Modified by: @hvlad

status: Open [ 1 ] => Resolved [ 5 ]

resolution: Fixed [ 1 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

status: Resolved [ 5 ] => Closed [ 6 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pcisar

Workflow: jira [ 13300 ] => Firebird [ 13980 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

QA Status: No test

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants