You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
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
The text was updated successfully, but these errors were encountered: