Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
1.7.09
-
None
-
Previous Queries
-
Queries
-
All databases
Description
Run a query to completion. (Circulatory system)
Then run a longer query (20 sec or so) and cancel it quickly. (Digestive system)
The Circulatory system query will be deleted from the PQ.
Then run a longer query (20 sec or so) and cancel it quickly. (Digestive system)
The Circulatory system query will be deleted from the PQ.
Steps to Reproduce:
1. Run two queries, let the first query finish and verify it appears in previous queries correctly (make note of the QUERY_MASTER_ID).
2. Run a second query and as soon as it starts to run click on cancel.
3. Make note of the QUERY_MASTER_ID that is returned in the response message.
4. If Previous Queries did not refresh automatically then refresh the list.
5. Notice the 1st query you ran is no longer in the list and the one you just ran is appearing.
6. In the QT_QUERY_MASTER table you will notice the 1st query has the DELETE_FLAG set to 'Y' and has a DELETE_DATE that is after the END_DATE in the QT_QUERY_INSTANCE table.
The DELETE_FLAG and DELETE_DATE should be for the second query not the first query.
Not sure if it matters but the second query was run & cancelled within a minute of the first query finishing.