Skip to content
Permalink
Browse files
Fix a typo in get_best_ror_intersect
cpk_scan should not be used if using it increases the cost of the query
plan.
  • Loading branch information
spetrunia committed Jun 15, 2018
1 parent f61909e commit f2c4180
Showing 1 changed file with 2 additions and 0 deletions.
@@ -6529,6 +6529,8 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree,
if (ror_intersect_add(intersect, cpk_scan, TRUE) &&
(intersect->total_cost < min_cost))
intersect_best= intersect; //just set pointer here
else
cpk_scan= 0; // Don't use cpk_scan
}
else
cpk_scan= 0; // Don't use cpk_scan

0 comments on commit f2c4180

Please sign in to comment.