mirror of
https://github.com/MariaDB/server.git
synced 2025-12-24 11:21:21 +03:00
checking columns of top items
mysql-test/r/row_test.result: changed error message (report requestet columns number) new tests mysql-test/t/row_test.test: new tests sql/item.h: checking columns of wrapper items
This commit is contained in:
@@ -501,7 +501,8 @@ static bool mysql_test_select_fields(PREP_STMT *stmt, TABLE_LIST *tables,
|
||||
{
|
||||
thd->where="having clause";
|
||||
thd->allow_sum_func=1;
|
||||
if (having->fix_fields(thd, tables, &having) || thd->fatal_error)
|
||||
if (having->check_cols(1) || having->fix_fields(thd, tables, &having)
|
||||
|| thd->fatal_error)
|
||||
DBUG_RETURN(1);
|
||||
if (having->with_sum_func)
|
||||
having->split_sum_func(all_fields);
|
||||
|
||||
Reference in New Issue
Block a user