Skip to content

Commit

Permalink
Follow @dyemanov suggestion
Browse files Browse the repository at this point in the history
  • Loading branch information
hvlad committed Mar 21, 2024
1 parent f2b281d commit 4469b6d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/jrd/optimizer/Optimizer.cpp
Expand Up @@ -1130,11 +1130,11 @@ void Optimizer::compileRelation(StreamType stream)
bool updated = false;
for (const index_desc& idx : idxList)
{
if (idx.idx_selectivity == 0.0f)
if (idx.idx_selectivity <= 0.0f)
{
SelectivityList selectivity;
BTR_selectivity(tdbb, relation, idx.idx_id, selectivity);
if (selectivity[0] != 0.0f)
if (selectivity[0] > 0.0f)
updated = true;
}
}
Expand Down

0 comments on commit 4469b6d

Please sign in to comment.