8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 21:23:04 +01:00

Avoid storing garbage in idx_selectivity

This commit is contained in:
Dmitry Yemanov 2023-09-12 08:32:47 +03:00
parent 828349d53e
commit 51c057148c

View File

@ -533,7 +533,7 @@ bool BTR_description(thread_db* tdbb, jrd_rel* relation, index_root_page* root,
idx_desc->idx_selectivity = key_descriptor->irtd_selectivity;
ptr += sizeof(irtd);
}
idx->idx_selectivity = idx_desc->idx_selectivity;
idx->idx_selectivity = idx->idx_rpt[idx->idx_count - 1].idx_selectivity;
if (idx->idx_flags & idx_expressn)
{