summaryrefslogtreecommitdiff
path: root/sql/item_sum.cc
diff options
context:
space:
mode:
authorunknown <bell@laptop.sanja.is.com.ua>2003-08-23 13:29:38 +0300
committerunknown <bell@laptop.sanja.is.com.ua>2003-08-23 13:29:38 +0300
commit93afa26ea7c6206aca6d8dc3b25873f4d732b929 (patch)
tree53f4829d55971fc556fdf48ef0def5296d1b9f18 /sql/item_sum.cc
parentb4a45538dfc89868246bdb1bd6ec8a20eba666b1 (diff)
downloadmariadb-git-93afa26ea7c6206aca6d8dc3b25873f4d732b929.tar.gz
fixed bug of lack of fix_fields call (after merge bugfix (SCRUM))
fixed bug in Item_sum fixed bug in dependence remover after merge fix mysql-test/r/subselect.result: after merge fix mysql-test/r/union.result: new test mysql-test/t/subselect.test: after merge fix mysql-test/t/union.test: new test sql/item.cc: fixed returned value sql/item.h: fixed flag dropper (I was not able to find Item whicj need more to be fix_fielded twice) sql/item_subselect.h: fixed initialisation sql/item_sum.cc: fixed absence of walk method of Item_sum sql/item_sum.h: fixed absence of walk method of Item_sum sql/mysql_priv.h: setup_fields reverter sql/sql_base.cc: setup_fields reverter sql/sql_derived.cc: fixed bug of lack of fix_fields call sql/sql_union.cc: fixed bug of lack of fix_fields call
Diffstat (limited to 'sql/item_sum.cc')
-rw-r--r--sql/item_sum.cc14
1 files changed, 14 insertions, 0 deletions
diff --git a/sql/item_sum.cc b/sql/item_sum.cc
index 1d3e608c31c..b029bcf2b87 100644
--- a/sql/item_sum.cc
+++ b/sql/item_sum.cc
@@ -118,6 +118,20 @@ Item *Item_sum::get_tmp_table_item(THD *thd)
return sum_item;
}
+bool Item_sum::walk (Item_processor processor, byte *argument)
+{
+ if (arg_count)
+ {
+ Item **arg,**arg_end;
+ for (arg= args, arg_end= args+arg_count; arg != arg_end; arg++)
+ {
+ if ((*arg)->walk(processor, argument))
+ return 1;
+ }
+ }
+ return (this->*processor)(argument);
+}
+
String *
Item_sum_num::val_str(String *str)
{