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

deallocate <id> results in all prepared statements being deallocated (not error-related) #7010

Closed
monetdb-team opened this issue Nov 30, 2020 · 0 comments
Labels
bug Something isn't working normal SQL

Comments

@monetdb-team
Copy link

Date: 2020-11-13 10:00:34 +0100
From: Karl <>
To: SQL devs <>
Version: 11.39.5 (Oct2020)
CC: @PedroTadim

Last updated: 2020-11-24 11:37:23 +0100

Comment 28264

Date: 2020-11-13 10:00:34 +0100
From: Karl <>

User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:82.0) Gecko/20100101 Firefox/82.0
Build Identifier:

Deallocating a specific prepared statement (via deallocate [prepare] ) causes all session statements to be deallocated.

This is new in 11.39.5, doesn't happen in 11.37.11.

Reproducible: Always

Steps to Reproduce:

sql> prepare select 1;
execute prepared statement using: EXEC 0(...)

sql> prepare select 2;
execute prepared statement using: EXEC 1(...)

sql> select count(*) from sys.prepared_statements;
2

sql> deallocate prepare 0;
operation successful

Actual Results:

sql> select count(*) from sys.prepared_statements;
0

Expected Results:

sql> select count(*) from sys.prepared_statements;
1

Comment 28265

Date: 2020-11-13 10:54:28 +0100
From: MonetDB Mercurial Repository <>

Changeset 9bb34d385f57 made by Pedro Ferreira pedro.ferreira@monetdbsolutions.com in the MonetDB repo, refers to this bug.

For complete details, see https//devmonetdborg/hg/MonetDB?cmd=changeset;node=9bb34d385f57

Changeset description:

Added test and fix for bug #7010, ie don't clean query cache on deallocate mode. It is already handled by the mode itself
@monetdb-team monetdb-team added bug Something isn't working normal SQL labels Nov 30, 2020
@sjoerdmullender sjoerdmullender added this to the Ancient Release milestone Feb 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working normal SQL
Projects
None yet
Development

No branches or pull requests

2 participants