1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

temporary preventing subselect in HAVING clause

This commit is contained in:
bell@sanja.is.com.ua
2002-06-07 21:26:43 +03:00
parent b9ad4b015e
commit bd7e31bc53
4 changed files with 16 additions and 3 deletions

View File

@ -229,7 +229,11 @@ JOIN::prepare(TABLE_LIST *tables_init,
{
thd->where="having clause";
thd->allow_sum_func=1;
if (having->fix_fields(thd,tables_list) || thd->fatal_error)
bool having_fix_field_store= thd->having_fix_field;
thd->having_fix_field= 1;
bool having_fix_rc= having->fix_fields(thd,tables_list);
thd->having_fix_field= having_fix_field_store;
if (having_fix_rc || thd->fatal_error)
DBUG_RETURN(-1); /* purecov: inspected */
if (having->with_sum_func)
having->split_sum_func(all_fields);