Commit a8b3a0bb authored by serg@serg.mylan's avatar serg@serg.mylan

don't crash when trp=0

parent 50806742
...@@ -2869,10 +2869,10 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree, ...@@ -2869,10 +2869,10 @@ TRP_ROR_INTERSECT *get_best_ror_intersect(const PARAM *param, SEL_TREE *tree,
trp->records= best_rows? best_rows : 1; trp->records= best_rows? best_rows : 1;
trp->index_scan_costs= best_index_scan_costs; trp->index_scan_costs= best_index_scan_costs;
trp->cpk_scan= cpk_scan; trp->cpk_scan= cpk_scan;
}
DBUG_PRINT("info", DBUG_PRINT("info",
("Returning non-covering ROR-intersect plan: cost %g, records %lu", ("Returning non-covering ROR-intersect plan: cost %g, records %lu",
trp->read_cost, (ulong) trp->records)); trp->read_cost, (ulong) trp->records));
}
DBUG_RETURN(trp); DBUG_RETURN(trp);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment