mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-23 04:03:04 +01:00
Avoid storing garbage in idx_selectivity
This commit is contained in:
parent
828349d53e
commit
51c057148c
@ -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;
|
idx_desc->idx_selectivity = key_descriptor->irtd_selectivity;
|
||||||
ptr += sizeof(irtd);
|
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)
|
if (idx->idx_flags & idx_expressn)
|
||||||
{
|
{
|
||||||
|
Loading…
Reference in New Issue
Block a user