Commit ae3f548f authored by Igor Babaev's avatar Igor Babaev

Fixed valgrind problems of the patch for bug 794901.

parent 1e948fad
...@@ -478,11 +478,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived) ...@@ -478,11 +478,7 @@ bool mysql_derived_merge_for_insert(THD *thd, LEX *lex, TABLE_LIST *derived)
if (derived->merged_for_insert) if (derived->merged_for_insert)
return FALSE; return FALSE;
if (derived->is_materialized_derived()) if (derived->is_materialized_derived())
{ return mysql_derived_prepare(thd, lex, derived);
bool res= mysql_derived_prepare(thd, lex, derived);
derived->select_lex->leaf_tables.push_back(derived);
return res;
}
if (!derived->is_multitable()) if (!derived->is_multitable())
{ {
if (!derived->updatable) if (!derived->updatable)
......
...@@ -1639,6 +1639,7 @@ void st_select_lex::init_query() ...@@ -1639,6 +1639,7 @@ void st_select_lex::init_query()
nest_level= 0; nest_level= 0;
link_next= 0; link_next= 0;
lock_option= TL_READ_DEFAULT; lock_option= TL_READ_DEFAULT;
is_prep_leaf_list_saved= FALSE;
bzero((char*) expr_cache_may_be_used, sizeof(expr_cache_may_be_used)); bzero((char*) expr_cache_may_be_used, sizeof(expr_cache_may_be_used));
} }
...@@ -1674,7 +1675,6 @@ void st_select_lex::init_select() ...@@ -1674,7 +1675,6 @@ void st_select_lex::init_select()
cond_value= having_value= Item::COND_UNDEF; cond_value= having_value= Item::COND_UNDEF;
inner_refs_list.empty(); inner_refs_list.empty();
full_group_by_flag= 0; full_group_by_flag= 0;
is_prep_leaf_list_saved= FALSE;
insert_tables= 0; insert_tables= 0;
merged_into= 0; merged_into= 0;
} }
......
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