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

Fixed the bug I introduced during optimizer refactoring, thanks to Andrey Kravchenko

This commit is contained in:
Dmitry Yemanov 2024-03-11 10:03:42 +03:00
parent 304d19bb6f
commit b8014996a6

View File

@ -2264,7 +2264,10 @@ InversionCandidate* Retrieval::matchOnIndexes(IndexScratchList& inputIndexScratc
matches.add(match);
for (const auto match : invCandidate2->matches)
matches.add(match);
{
if (matches.exist(match))
invCandidate->matches.add(match);
}
}
return invCandidate;