diff options
author | monty@mysql.com <> | 2005-02-10 02:27:37 +0200 |
---|---|---|
committer | monty@mysql.com <> | 2005-02-10 02:27:37 +0200 |
commit | a1a39fab845e6d39f25b256e5566c7a2b05c198b (patch) | |
tree | 5b603904b731e515c447d53d7843855bfbbe2f8c /sql/item_row.cc | |
parent | 5239605105ad51cce9e65f8ecbc1aacb4afda031 (diff) | |
parent | 70797f571fc593aa887dec64c29cbd8656a8bc1d (diff) | |
download | mariadb-git-a1a39fab845e6d39f25b256e5566c7a2b05c198b.tar.gz |
Merge with 4.1
Diffstat (limited to 'sql/item_row.cc')
-rw-r--r-- | sql/item_row.cc | 18 |
1 files changed, 2 insertions, 16 deletions
diff --git a/sql/item_row.cc b/sql/item_row.cc index 08c682afa85..00d849e55de 100644 --- a/sql/item_row.cc +++ b/sql/item_row.cc @@ -90,24 +90,10 @@ void Item_row::split_sum_func(THD *thd, Item **ref_pointer_array, { Item **arg, **arg_end; for (arg= items, arg_end= items+arg_count; arg != arg_end ; arg++) - { - Item *item= *arg; - if (item->type() != SUM_FUNC_ITEM && - (item->with_sum_func || - (item->used_tables() & PSEUDO_TABLE_BITS))) - item->split_sum_func(thd, ref_pointer_array, fields); - else if (item->type() == SUM_FUNC_ITEM || - (item->used_tables() && item->type() != REF_ITEM)) - { - uint el= fields.elements; - ref_pointer_array[el]= *arg; - Item *new_item= new Item_ref(ref_pointer_array + el, 0, (*arg)->name); - fields.push_front(*arg); - thd->change_item_tree(arg, new_item); - } - } + (*arg)->split_sum_func2(thd, ref_pointer_array, fields, arg); } + void Item_row::update_used_tables() { used_tables_cache= 0; |