Commit 70455c51 authored by Igor Babaev's avatar Igor Babaev

Corrected the patch for bug 809206 to fix valgrind failures.

parent 7c46dc52
......@@ -902,9 +902,10 @@ JOIN::optimize()
/* Save this info for the next executions */
if (select_lex->save_leaf_tables(thd))
DBUG_RETURN(1);
eval_select_list_used_tables();
}
eval_select_list_used_tables();
table_count= select_lex->leaf_tables.elements;
if (setup_ftfuncs(select_lex)) /* should be after having->fix_fields */
......
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