diff options
author | unknown <igor@rurik.mysql.com> | 2006-01-07 23:00:06 -0800 |
---|---|---|
committer | unknown <igor@rurik.mysql.com> | 2006-01-07 23:00:06 -0800 |
commit | 7bb07fd4c301ed67ed083febb2e0fcf4be2e6631 (patch) | |
tree | 4b770f750dd504114956bf8b90f322d623837a39 /sql/sql_select.cc | |
parent | af13158ab844d131e8b7c41c4a50a93e3f6c83c0 (diff) | |
download | mariadb-git-7bb07fd4c301ed67ed083febb2e0fcf4be2e6631.tar.gz |
Fixed bug #14274: a query with a having clause containing only set function returned a wrong result set.
mysql-test/r/having.result:
Added a test case for bug #14274.
mysql-test/t/having.test:
Added a test case for bug #14274.
sql/sql_select.cc:
Fixed bug #14274: a query with a having clause containing only set function returned a wrong result set.
It happened because processing of the set functions in having started with a call of the split_sum_func
method, instead of the split_sum_func2 method.
Diffstat (limited to 'sql/sql_select.cc')
-rw-r--r-- | sql/sql_select.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sql/sql_select.cc b/sql/sql_select.cc index 5e29c98e2c8..09900c89307 100644 --- a/sql/sql_select.cc +++ b/sql/sql_select.cc @@ -287,7 +287,7 @@ JOIN::prepare(Item ***rref_pointer_array, if (having_fix_rc || thd->net.report_error) DBUG_RETURN(-1); /* purecov: inspected */ if (having->with_sum_func) - having->split_sum_func(thd, ref_pointer_array, all_fields); + having->split_sum_func2(thd, ref_pointer_array, all_fields, &having); } // Is it subselect |