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:
parent
8ef210da34
commit
eaf99a7a0e
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user