8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-23 23:23:04 +01:00
This commit is contained in:
dimitr 2003-03-25 09:51:52 +00:00
parent 37648c9747
commit 46fd65228a
2 changed files with 4 additions and 3 deletions

View File

@ -6436,7 +6436,7 @@ static SSHORT sort_indices_by_priority(csb_repeat * csb_tail,
bool should_be_used = true;
if (idx->idx_selectivity && !(csb_tail->csb_plan)) {
if (!(idx->idx_flags & idx_unique) &&
selectivity * SELECTIVITY_THRESHOLD_FACTOR < idx->idx_selectivity) {
(selectivity * SELECTIVITY_THRESHOLD_FACTOR < idx->idx_selectivity)) {
should_be_used = false;
}
selectivity = idx->idx_selectivity;

View File

@ -2063,8 +2063,9 @@ void VIO_modify(TDBB tdbb, RPB * org_rpb, RPB * new_rpb, JRD_TRA transaction)
EVL_field(0, org_rpb->rpb_record, f_trg_name, &desc1);
DFW_post_work(transaction, dfw_modify_trigger, &desc1, 0);
break;
default:
break;
default:
break;
}
/* We're almost ready to go. To modify the record, we must first