1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-21 21:22:27 +03:00

Fix a typo in get_best_ror_intersect

cpk_scan should not be used if using it increases the cost of the query
plan.
This commit is contained in:
Sergei Petrunia
2018-06-15 17:13:31 +03:00
parent f61909e19e
commit f2c418079d

View File

@ -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