1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-31 22:22:30 +03:00

Fixed bug #14274: a query with a having clause containing only set function returned a wrong result set.

This commit is contained in:
igor@rurik.mysql.com
2006-01-07 23:00:06 -08:00
parent f7d6fa6f17
commit 05947d9916
3 changed files with 26 additions and 1 deletions

View File

@@ -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