Commit 9f3674cc authored by Tor Didriksen's avatar Tor Didriksen

merge 5.1 => 5.5

parents dad930b4 a42662c1
...@@ -9994,7 +9994,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table, ...@@ -9994,7 +9994,7 @@ static Field *create_tmp_field_from_item(THD *thd, Item *item, TABLE *table,
if (new_field) if (new_field)
new_field->init(table); new_field->init(table);
if (copy_func && item->is_result_field()) if (copy_func && item->real_item()->is_result_field())
*((*copy_func)++) = item; // Save for copy_funcs *((*copy_func)++) = item; // Save for copy_funcs
if (modify_item) if (modify_item)
item->set_result_field(new_field); item->set_result_field(new_field);
......
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