mirror of
https://github.com/MariaDB/server.git
synced 2026-05-10 00:54:30 +02:00
subselect in having clause
fixed bug in sum function in subselect mysql-test/r/subselect.result: subselect in having clause mysql-test/t/subselect.test: subselect in having clause sql/item.cc: subselect in having clause sql/item.h: subselect in having clause sql/item_cmpfunc.cc: subselect in having clause sql/item_cmpfunc.h: subselect in having clause sql/item_func.cc: subselect in having clause sql/item_func.h: subselect in having clause sql/item_strfunc.h: subselect in having clause sql/item_subselect.cc: subselect in having clause sql/item_subselect.h: subselect in having clause sql/item_uniq.h: subselect in having clause sql/sql_base.cc: subselect in having clause sql/sql_class.cc: subselect in having clause sql/sql_class.h: subselect in having clause sql/sql_handler.cc: subselect in having clause sql/sql_lex.cc: subselect in having clause sql/sql_lex.h: subselect in having clause sql/sql_prepare.cc: subselect in having clause sql/sql_yacc.yy: subselect in having clause
This commit is contained in:
parent
969919146e
commit
e5b5f45319
23 changed files with 177 additions and 99 deletions
|
|
@ -75,15 +75,8 @@ void Item_subselect::make_field (Send_field *tmp_field)
|
|||
}
|
||||
}
|
||||
|
||||
bool Item_subselect::fix_fields(THD *thd,TABLE_LIST *tables)
|
||||
bool Item_subselect::fix_fields(THD *thd, TABLE_LIST *tables, Item **ref)
|
||||
{
|
||||
|
||||
if (thd->having_fix_field)
|
||||
{
|
||||
//TODO: subselects in having do not suported now
|
||||
my_printf_error(ER_SYNTAX_ERROR, ER(ER_SYNTAX_ERROR), MYF(0));
|
||||
return 1;
|
||||
}
|
||||
// Is it one field subselect?
|
||||
if (select_lex->item_list.elements > max_columns)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue