mirror of
https://github.com/FirebirdSQL/firebird.git
synced 2025-02-02 10:00:38 +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();
|
MetaId n = idxList.getCount();
|
||||||
while (n--)
|
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())
|
if (idv && !idv->getActive())
|
||||||
idv = nullptr;
|
idv = nullptr;
|
||||||
if (!idv)
|
if (!idv)
|
||||||
|
Loading…
Reference in New Issue
Block a user