mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 21:23:04 +01:00
Fixed assertion during optimization of mixed list/equality comparisons
This commit is contained in:
parent
98428183b3
commit
304d19bb6f
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user