summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authormonty@mysql.com <>2005-02-07 18:26:14 +0200
committermonty@mysql.com <>2005-02-07 18:26:14 +0200
commitc926d8a0be2649d73d14b622cbc8919bd5a54499 (patch)
tree6a5f03ae2cad17887f65d19ac230ad08ec53e456
parent95aaf76682631f0ae24dceb8772da84223f58b10 (diff)
parent80acd88168602a094f3177de87208b48a0298fa3 (diff)
downloadmariadb-git-c926d8a0be2649d73d14b622cbc8919bd5a54499.tar.gz
Merge bk-internal.mysql.com:/home/bk/mysql-5.0
into mysql.com:/home/my/mysql-5.0
-rw-r--r--sql/item.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc
index a0d1d8cbacf..30e03916a74 100644
--- a/sql/item.cc
+++ b/sql/item.cc
@@ -3069,6 +3069,10 @@ void Item_ref::set_properties()
maybe_null= (*ref)->maybe_null;
decimals= (*ref)->decimals;
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;
if ((*ref)->type() == FIELD_ITEM)
alias_name_used= ((Item_ident *) (*ref))->alias_name_used;