summaryrefslogtreecommitdiff
path: root/sql/item_func.cc
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-05-22 08:48:10 +0300
committerunknown <sanja@montyprogram.com>2012-05-22 08:48:10 +0300
commit950abd526837b8772044d521387fa6d410de5706 (patch)
treed5deadcf46de5a138088ce2f2dd407dbba094a56 /sql/item_func.cc
parent280fcf08085e43b5359ec79c0e34166e51b3ebd8 (diff)
downloadmariadb-git-950abd526837b8772044d521387fa6d410de5706.tar.gz
Fix of LP bug#992380 + revise fix_fields about missing with_subselect collection
The problem is that some fix_fields do not call Item_func::fix_fields and do not collect with subselect_information.
Diffstat (limited to 'sql/item_func.cc')
-rw-r--r--sql/item_func.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item_func.cc b/sql/item_func.cc
index ed771b60769..8028ae53eaf 100644
--- a/sql/item_func.cc
+++ b/sql/item_func.cc
@@ -2918,6 +2918,7 @@ udf_handler::fix_fields(THD *thd, Item_result_field *func,
if (item->maybe_null)
func->maybe_null=1;
func->with_sum_func= func->with_sum_func || item->with_sum_func;
+ func->with_subselect|= item->with_subselect;
used_tables_cache|=item->used_tables();
const_item_cache&=item->const_item();
f_args.arg_type[i]=item->result_type();