8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 15:23:03 +01:00

Revert "Better (methinks) inversion choice when the OR condition includes a node which is also matched directly"

This reverts commit ebcd4dde64.
This commit is contained in:
Dmitry Yemanov 2025-01-09 14:59:05 +03:00
parent 29873bc712
commit 5167c588a4

View File

@ -1496,21 +1496,6 @@ InversionCandidate* Retrieval::makeInversion(InversionCandidateList& inversions)
// Look if a match is already used by previous matches.
bool anyMatchAlreadyUsed = false, matchUsedByNavigation = false;
if (currentInv->boolean)
{
if (matches.exist(currentInv->boolean))
{
anyMatchAlreadyUsed = true;
if (navigationCandidate &&
navigationCandidate->matches.exist(currentInv->boolean))
{
matchUsedByNavigation = true;
}
}
}
else
{
for (const auto currentMatch : currentInv->matches)
{
if (matches.exist(currentMatch))
@ -1526,7 +1511,6 @@ InversionCandidate* Retrieval::makeInversion(InversionCandidateList& inversions)
break;
}
}
}
if (currentInv->boolean && matches.exist(currentInv->boolean))
anyMatchAlreadyUsed = true;