diff --git a/sql/item_cmpfunc.cc b/sql/item_cmpfunc.cc index 1731f5859b3..b73a3b990fa 100644 --- a/sql/item_cmpfunc.cc +++ b/sql/item_cmpfunc.cc @@ -429,6 +429,7 @@ bool Item_in_optimizer::fix_left(THD *thd, not_null_tables_cache= args[0]->not_null_tables(); with_sum_func= args[0]->with_sum_func; const_item_cache= args[0]->const_item(); + fixed= 1; return 0; } diff --git a/sql/item_sum.cc b/sql/item_sum.cc index e5f88156c2d..74dd95bf0ab 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -1830,7 +1830,7 @@ bool Item_func_group_concat::setup(THD *thd) if (select_lex->linkage == GLOBAL_OPTIONS_TYPE) DBUG_RETURN(1); /* - all not constant fields are push to list and create temp table + push all not constant fields to list and create temp table */ always_null= 0; for (uint i= 0; i < arg_count; i++)