Commit 42bf35a7 authored by Sergey Petrunya's avatar Sergey Petrunya

Fix a crash when running subselect.test with --debug option: use

correct number of tables (when we're optimizing a materializable semi-join 
nest, we're considering only tables from within that nest).
parent b088a775
...@@ -5214,7 +5214,7 @@ greedy_search(JOIN *join, ...@@ -5214,7 +5214,7 @@ greedy_search(JOIN *join,
'join->best_positions' contains a complete optimal extension of the 'join->best_positions' contains a complete optimal extension of the
current partial QEP. current partial QEP.
*/ */
DBUG_EXECUTE("opt", print_plan(join, join->tables, DBUG_EXECUTE("opt", print_plan(join, n_tables,
record_count, read_time, read_time, record_count, read_time, read_time,
"optimal");); "optimal"););
DBUG_RETURN(FALSE); DBUG_RETURN(FALSE);
......
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