Skip to content

Commit 00c4ad4

Browse files
committed
Postfix for QA test bugs.core_0995
1 parent 82a7d46 commit 00c4ad4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/jrd/optimizer/Retrieval.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -715,7 +715,7 @@ void Retrieval::applyNavigation(InversionCandidate* candidate)
715715
if (optimizer->favorFirstRows())
716716
{
717717
// Reset the cost to represent a single record retrieval
718-
navigationCost = DEFAULT_INDEX_COST;
718+
navigationCost = navigationCandidate->matches.isEmpty() ? DEFAULT_INDEX_COST : 0;
719719

720720
// We know that some local filtering is applied, so we need
721721
// to adjust the cost as we need to walk the index

0 commit comments

Comments
 (0)