8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-02-02 10:00:38 +01:00

Second attempt to fix "divide by zero" issues in the optimizer.

This commit is contained in:
dimitr 2005-03-29 09:07:51 +00:00
parent 8ef210da34
commit eaf99a7a0e

View File

@ -1884,7 +1884,10 @@ InversionCandidate* OptimizerRetrieval::makeInversion(InversionCandidateList* in
worstSel = bestSelectivity;
bestSel = totalSelectivity;
}
if (bestSel == 0) {
if (bestSel >= 1) {
totalSelectivity = 1;
}
else if (bestSel == 0) {
totalSelectivity = 0;
}
else {