8
0
mirror of https://github.com/FirebirdSQL/firebird.git synced 2025-01-22 18:43:02 +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 c5af128afb
commit c1fd30a344

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;