mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 18:43:02 +01:00
Avoid storing garbage in idx_selectivity
This commit is contained in:
parent
022f092877
commit
784f7bd8a6
@ -962,7 +962,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;
|
||||||
|
|
||||||
ISC_STATUS error = 0;
|
ISC_STATUS error = 0;
|
||||||
if (idx->idx_flags & idx_expression)
|
if (idx->idx_flags & idx_expression)
|
||||||
|
Loading…
Reference in New Issue
Block a user