Skip to content

Commit e1ce897

Browse files
committed
Added/Updated tests\bugs\gh_8057_test.py: An old problem triggered by schemas changes was found when this test ran on 6.0.0.834. Fixed. Checked on 6.0.0.1039-45b40b8.
1 parent e2fe0bd commit e1ce897

File tree

1 file changed

+23
-18
lines changed

1 file changed

+23
-18
lines changed

tests/bugs/gh_8057_test.py

Lines changed: 23 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -42,24 +42,27 @@
4242
Finally, we check that all indices has NON-zero statistics: rel_sel_map{} must have NO items with zero values.
4343
NOTES:
4444
[21.12.2024] pzotov
45-
Currently only FB 6.x has this feature (since 22-mar-2024 11:46).
46-
Commit: https://github.com/FirebirdSQL/firebird/commit/ef66a9b4d803d5129a10350c54f00bc637c09b48
47-
48-
::: ACHTUNG ::: Index statistics must be searched in the Index Root page rather than in RDB$INDICES!
49-
Internals of misc FB page types can be found here:
50-
https://firebirdsql.org/file/documentation/html/en/firebirddocs/firebirdinternals/firebird-internals.html
51-
52-
It is supposed that there are no expression-based indices for selected system tables (this case was not investigated).
53-
54-
Confirmed ticket issue on 6.0.0.294-c353de4 (21-mar-2024 16:45): some of system tables remain with non-updated index statistics.
55-
Checked on 6.0.0.295-ef66a9b (22-mar-2024 13:48): all OK,every of checked system tables has non-zero statistics for its indices.
56-
Test executiuon time: ~8...10 seconds.
57-
58-
[24.02.2025]
59-
Changed offset calculations according to #93db88: ODS14: header page refactoring (#8401)
60-
See: https://github.com/FirebirdSQL/firebird/commit/93db88084d5a04aaa3f98179e76cdfa092431fa8
61-
62-
Thanks to Vlad for explanations.
45+
Currently only FB 6.x has this feature (since 22-mar-2024 11:46).
46+
Commit: https://github.com/FirebirdSQL/firebird/commit/ef66a9b4d803d5129a10350c54f00bc637c09b48
47+
::: ACHTUNG ::: Index statistics must be searched in the Index Root page rather than in RDB$INDICES!
48+
Internals of misc FB page types can be found here:
49+
https://firebirdsql.org/file/documentation/html/en/firebirddocs/firebirdinternals/firebird-internals.html
50+
It is supposed that there are no expression-based indices for selected system tables (this case was not investigated).
51+
52+
Confirmed ticket issue on 6.0.0.294-c353de4 (21-mar-2024 16:45): some of system tables remain with non-updated index statistics.
53+
Checked on 6.0.0.295-ef66a9b (22-mar-2024 13:48): all OK,every of checked system tables has non-zero statistics for its indices.
54+
Test executiuon time: ~8...10 seconds.
55+
[24.02.2025] pzotov
56+
Changed offset calculations according to #93db88: ODS14: header page refactoring (#8401)
57+
See: https://github.com/FirebirdSQL/firebird/commit/93db88084d5a04aaa3f98179e76cdfa092431fa8
58+
Thanks to Vlad for explanations.
59+
[18.07.2025] pzotov
60+
An old problem triggered by schemas changes was found when this test ran on 6.0.0.834:
61+
Sent report to Adriano 18.07.2025 08:24, subj:
62+
Weird "message length error (encountered 506, expected 253)" on attempting to create trivial function after trying to drop non-existing filter
63+
Fixed on:
64+
https://github.com/FirebirdSQL/firebird/commit/45b40b86b94bec9deadcab5d376e079700cd68aa
65+
Checked on 6.0.0.1039-45b40b8.
6366
"""
6467
import sys
6568
import binascii
@@ -133,6 +136,7 @@
133136
v_sttm = 'create or alter mapping local_map_' || i || ' using any plugin from group musicians to role guitarist';
134137
execute statement v_sttm;
135138
139+
-- /**********************
136140
begin
137141
v_sttm = 'drop collation name_coll_' || i;
138142
execute statement v_sttm;
@@ -172,6 +176,7 @@
172176
begin
173177
end
174178
end
179+
-- ************************/
175180
176181
-- examples\api\api9f.sql
177182
-- declare filter desc_filter_01 -- ==> will be saved in indexed column rdb$filters.rdb$function_name

0 commit comments

Comments
 (0)