Commit 80acd881 authored by monty@mysql.com's avatar monty@mysql.com

Added comment

parent 23bf186c
...@@ -3069,6 +3069,10 @@ void Item_ref::set_properties() ...@@ -3069,6 +3069,10 @@ void Item_ref::set_properties()
maybe_null= (*ref)->maybe_null; maybe_null= (*ref)->maybe_null;
decimals= (*ref)->decimals; decimals= (*ref)->decimals;
collation.set((*ref)->collation); collation.set((*ref)->collation);
/*
We have to remember if we refer to a sum function, to ensure that
split_sum_func() doesn't try to change the reference.
*/
with_sum_func= (*ref)->with_sum_func; with_sum_func= (*ref)->with_sum_func;
if ((*ref)->type() == FIELD_ITEM) if ((*ref)->type() == FIELD_ITEM)
alias_name_used= ((Item_ident *) (*ref))->alias_name_used; alias_name_used= ((Item_ident *) (*ref))->alias_name_used;
......
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