Skip to content

Commit 64527cb

Browse files
committed
Added/Updated tests\bugs\gh_8104_test.py: C:\FBTESTING\qa\firebird-qa\git-commit-adjust-output.bat gh_8104_test.py added description
1 parent 91cb6b8 commit 64527cb

File tree

1 file changed

+13
-1
lines changed

1 file changed

+13
-1
lines changed

tests/bugs/gh_8104_test.py

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,21 @@
55
ISSUE: https://github.com/FirebirdSQL/firebird/issues/8104
66
TITLE: Inefficient evaluation of expressions like rdb$db_key <= ? after mass delete
77
DESCRIPTION:
8+
Test does actions described in the ticket but operates with first PP of table instead of 20th
9+
(see variable 'chk_pp').
10+
Following query is performed two times (see variable 'read_records_for_chk_pp'):
11+
=========
12+
select ...
13+
from t1
14+
where
15+
rdb$db_key >= make_dbkey({rel_id}, 0, 0, {chk_pp})
16+
and rdb$db_key < make_dbkey({rel_id}, 0, 0, {chk_pp+1})
17+
=========
18+
We compare number of fetches in this query before and after bulk deletion ('fetches_1', 'fetches_2').
19+
Value 'fetches_2' must be LESS than 'fetches_1' (before fix it was much greater).
820
NOTES:
921
[08.05.2024] pzotov
10-
Confirmed problem on 6.0.0.344, 5.0.1.1394, 4.0.5.3091 (request #1: 47643; request #2: 115943).
22+
Confirmed problem on 6.0.0.344, 5.0.1.1394, 4.0.5.3091 (fetches in request #1: 47643; in request #2: 115943).
1123
Checked on 6.0.0.345, 5.0.1.1395, 4.0.5.3092 (fetches in req #2 LESS than in req #1).
1224
"""
1325

0 commit comments

Comments
 (0)