diff options
author | unknown <igor@rurik.mysql.com> | 2006-09-25 05:24:07 -0700 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2006-09-25 05:24:07 -0700 |
commit | 9bf2ed95539220b6da3452eecbab56ae33af2126 (patch) | |
tree | 3706b7dbde93c5a69cab31386243aefdd0c0cf3a /sql/item.cc | |
parent | 0f50a8a7fea053127f236ca4956bba58370a8d81 (diff) | |
download | mariadb-git-9bf2ed95539220b6da3452eecbab56ae33af2126.tar.gz |
Fixed bug #21853: assert failure for a grouping query with
an ALL/ANY quantified subquery in HAVING.
The Item::split_sum_func2 method should not create Item_ref
for objects of any class derived from Item_subselect.
mysql-test/r/subselect.result:
Added a test case for bug #21853.
mysql-test/t/subselect.test:
Added a test case for bug #21853.
Diffstat (limited to 'sql/item.cc')
-rw-r--r-- | sql/item.cc | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/sql/item.cc b/sql/item.cc index 7c9f6ec77fb..94f0a24fcc3 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -387,6 +387,7 @@ void Item::split_sum_func2(THD *thd, Item **ref_pointer_array, } else if ((type() == SUM_FUNC_ITEM || (used_tables() & ~PARAM_TABLE_BIT)) && + type() != SUBSELECT_ITEM && type() != REF_ITEM) { /* |