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

Statement handles allocated with isc_dsql_alloc_statement2() are not cleaned on detach [CORE5469] #5739

Closed
firebird-automations opened this issue Jan 25, 2017 · 4 comments

Comments

@firebird-automations
Copy link
Collaborator

Submitted by: @aafemt

Attachments:
alloc2.cpp.7z

According to API Guide, "the isc_dsql_allocate_statement2() function is similar to the isc_dsql_alloc_statement() function except that statement handles allocated using isc_dsql_allocate_statement2() are automatically reset to NULL when the database under which they are allocated is detached". Starting from Firebird 3 handles aren't reset because of missing piece of code in IscStatement.

Commits: 50c2148

@firebird-automations
Copy link
Collaborator Author

Commented by: @aafemt

Test program is attached.

@firebird-automations
Copy link
Collaborator Author

Modified by: @aafemt

Attachment: alloc2.cpp.7z [ 13060 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @aafemt

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

resolution: Fixed [ 1 ]

Fix Version: 4.0 Alpha 1 [ 10731 ]

Fix Version: 3.0.2 [ 10785 ]

@firebird-automations
Copy link
Collaborator Author

Modified by: @pavel-zotov

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

QA Status: No test => Cannot be tested

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