Commit d319c8ff authored by unknown's avatar unknown

item.cc:

  Fix for fix bug#12922.


sql/item.cc:
  Fix for fix bug#12922.
parent dfc328e1
......@@ -1037,13 +1037,13 @@ void Item::split_sum_func2(THD *thd, Item **ref_pointer_array,
Item_ref to allow fields from view being stored in tmp table.
*/
uint el= fields.elements;
Item *new_item, *real_item= real_item();
Item *new_item, *real_itm= real_item();
ref_pointer_array[el]= real_item;
ref_pointer_array[el]= real_itm;
if (!(new_item= new Item_ref(&thd->lex->current_select->context,
ref_pointer_array + el, 0, name)))
return; // fatal_error is set
fields.push_front(real_item);
fields.push_front(real_itm);
thd->change_item_tree(ref, new_item);
}
}
......
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