mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-01-22 20:03:02 +01:00
Fixed index selection when compiling relation
This commit is contained in:
parent
aae6a8d2e6
commit
aaaa7ba427
@ -1072,7 +1072,8 @@ void Optimizer::compileRelation(StreamType stream)
|
||||
MetaId n = idxList.getCount();
|
||||
while (n--)
|
||||
{
|
||||
auto* idv = relation()->lookup_index(tdbb, n, CacheFlag::AUTOCREATE);
|
||||
auto id = idxList[n].idx_id;
|
||||
auto* idv = relation()->lookup_index(tdbb, id, CacheFlag::AUTOCREATE);
|
||||
if (idv && !idv->getActive())
|
||||
idv = nullptr;
|
||||
if (!idv)
|
||||
|
Loading…
Reference in New Issue
Block a user