Skip to content

Commit 46797ab

Browse files
committed
Fix #8926: Indexes may not be used for multiple ORed conditions containing both field and non-field references
1 parent e80accd commit 46797ab

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/jrd/optimizer/Retrieval.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1623,6 +1623,7 @@ InversionCandidate* Retrieval::makeInversion(InversionCandidateList& inversions)
16231623

16241624
if (bestCandidate->condition)
16251625
{
1626+
bestCandidate->used = true;
16261627
bestCandidate = currentInv;
16271628
restartLoop = true;
16281629
break;

0 commit comments

Comments
 (0)