diff options
author | monty@mashka.mysql.fi <> | 2003-01-29 19:22:22 +0200 |
---|---|---|
committer | monty@mashka.mysql.fi <> | 2003-01-29 19:22:22 +0200 |
commit | 9e3fd0930570fbc852f494e0ca9ebd41996ee2ac (patch) | |
tree | c75b9bfc08d3d793d015a4b05b46c723ec15ce0e /sql/item_func.cc | |
parent | b025fa8b328ad247ad84c461392002aef04064d4 (diff) | |
parent | f2299ee72f1de7dd3281492405d6fff3049d8f3e (diff) | |
download | mariadb-git-9e3fd0930570fbc852f494e0ca9ebd41996ee2ac.tar.gz |
merge with 3.23.56 to get patches for --lower-case-table-names and
proper handling of SUM() in some functions.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r-- | sql/item_func.cc | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc index 02ae03b217f..ef629098d2a 100644 --- a/sql/item_func.cc +++ b/sql/item_func.cc @@ -971,6 +971,17 @@ longlong Item_func_field::val_int() return 0; } +void Item_func_field::split_sum_func(List<Item> &fields) +{ + if (item->with_sum_func && item->type() != SUM_FUNC_ITEM) + item->split_sum_func(fields); + else if (item->used_tables() || item->type() == SUM_FUNC_ITEM) + { + fields.push_front(item); + item= new Item_ref((Item**) fields.head_ref(), 0, item->name); + } + Item_func::split_sum_func(fields); +} longlong Item_func_ascii::val_int() { |