Corrected the patch for bug 809206 to fix valgrind failures.

This commit is contained in:
Igor Babaev 2011-07-13 20:00:28 -07:00
parent 7c46dc525e
commit 70455c517b

View file

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