mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
revision of fix_fields() calls (BUG2838)
mysql-test/r/subselect.result: test suite for BUG#2838 mysql-test/t/subselect.test: test suite for BUG#2838 sql/item.cc: revision of fix_fields() calls removed unnecessary variabl, and used correct last parameter of fix_fields() sql/item_cmpfunc.cc: revision of fix_fields() calls (BUG#2838) sql/item_func.cc: revision of fix_fields() calls sql/item_row.cc: changed for efficience (and to be similar for Item_func::fix_fields) sql/item_subselect.cc: fixed last arguments for fix_fields call sql/item_sum.cc: layout fixed revision of fix_fields() calls sql/log_event.cc: revision of fix_fields() calls sql/set_var.cc: revision of fix_fields() calls sql/sql_base.cc: revision of fix_fields() calls sql/sql_class.cc: revision of fix_fields() calls sql/sql_handler.cc: revision of fix_fields() calls
This commit is contained in:
@ -2457,7 +2457,7 @@ int set_var_user::check(THD *thd)
|
||||
{
|
||||
/*
|
||||
Item_func_set_user_var can't substitute something else on its place =>
|
||||
0 can be passed as last argument
|
||||
0 can be passed as last argument (reference on item)
|
||||
*/
|
||||
return (user_var_item->fix_fields(thd, 0, (Item**) 0) ||
|
||||
user_var_item->check()) ? -1 : 0;
|
||||
|
Reference in New Issue
Block a user