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

Fixed assertion during optimization of mixed list/equality comparisons

This commit is contained in:
Dmitry Yemanov 2024-03-11 09:08:05 +03:00
parent 98428183b3
commit 304d19bb6f

View File

@ -885,13 +885,14 @@ void Retrieval::getInversionCandidates(InversionCandidateList& inversions,
}
}
if (const auto list = segment.valueList)
if (segment.scanType == segmentScanList)
{
fb_assert(segment.scanType == segmentScanList);
if (listCount) // we cannot have more than one list matched to an index
break;
const auto list = segment.valueList;
fb_assert(list);
listCount = list->getCount();
maxSelectivity = scratch.selectivity;
}