diff --git a/src/jrd/optimizer/Retrieval.cpp b/src/jrd/optimizer/Retrieval.cpp index 06857201d5..e7ef18c054 100644 --- a/src/jrd/optimizer/Retrieval.cpp +++ b/src/jrd/optimizer/Retrieval.cpp @@ -2156,7 +2156,7 @@ InversionCandidate* Retrieval::matchDbKey(BoolExprNode* boolean) const { const auto inversion = FB_NEW_POOL(getPool()) InversionNode(value, n); inversion->impure = csb->allocImpure(); - listInversion = composeInversion(listInversion, inversion, InversionNode::TYPE_IN); + listInversion = composeInversion(listInversion, inversion, InversionNode::TYPE_OR); } invCandidate->inversion = listInversion;