diff options
author | Tor Didriksen <tor.didriksen@oracle.com> | 2011-05-05 08:13:22 +0200 |
---|---|---|
committer | Tor Didriksen <tor.didriksen@oracle.com> | 2011-05-05 08:13:22 +0200 |
commit | 6848f6c0d6e8c4bb5aa1ad2d39cd536860bd7e0b (patch) | |
tree | cd172df35bbbc323a22f426774bc859ed6080cb5 /sql/item_sum.cc | |
parent | 2da8ba6404bbba119d5d90575411978ace0f6ee6 (diff) | |
parent | e257fb3319ea6919de0a3c74c7025d4f9a218fed (diff) | |
download | mariadb-git-6848f6c0d6e8c4bb5aa1ad2d39cd536860bd7e0b.tar.gz |
merge 5.1 => 5.5 : Bug#12329653
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r-- | sql/item_sum.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc index 8855ef05c84..42088616f4a 100644 --- a/sql/item_sum.cc +++ b/sql/item_sum.cc @@ -259,10 +259,10 @@ bool Item_sum::check_sum_func(THD *thd, Item **ref) in_sum_func->outer_fields.push_back(field); } else - sel->full_group_by_flag|= NON_AGG_FIELD_USED; + sel->set_non_agg_field_used(true); } if (sel->nest_level > aggr_level && - (sel->full_group_by_flag & SUM_FUNC_USED) && + (sel->agg_func_used()) && !sel->group_list.elements) { my_message(ER_MIX_OF_GROUP_FUNC_AND_FIELDS, @@ -271,7 +271,7 @@ bool Item_sum::check_sum_func(THD *thd, Item **ref) } } } - aggr_sel->full_group_by_flag|= SUM_FUNC_USED; + aggr_sel->set_agg_func_used(true); update_used_tables(); thd->lex->in_sum_func= in_sum_func; return FALSE; |