mirror of
https://github.com/MariaDB/server.git
synced 2026-05-15 19:37:16 +02:00
Post-review fix for BUG#18787. Renamed a local variable in
Item_func_sp::tmp_table_field() to something more descriptive. sql/item_func.cc: Renamed local variable 'res' to 'field' in Item_func_sp::tmp_table_field(), because it is.
This commit is contained in:
parent
9381c8a089
commit
d9142f992e
1 changed files with 6 additions and 6 deletions
|
|
@ -4909,19 +4909,19 @@ longlong Item_func_found_rows::val_int()
|
||||||
Field *
|
Field *
|
||||||
Item_func_sp::tmp_table_field(TABLE *t_arg)
|
Item_func_sp::tmp_table_field(TABLE *t_arg)
|
||||||
{
|
{
|
||||||
Field *res= 0;
|
Field *field= 0;
|
||||||
DBUG_ENTER("Item_func_sp::tmp_table_field");
|
DBUG_ENTER("Item_func_sp::tmp_table_field");
|
||||||
|
|
||||||
if (m_sp)
|
if (m_sp)
|
||||||
res= m_sp->create_result_field(max_length, (const char*) name, t_arg);
|
field= m_sp->create_result_field(max_length, (const char*) name, t_arg);
|
||||||
|
|
||||||
if (!res)
|
if (!field)
|
||||||
res= Item_func::tmp_table_field(t_arg);
|
field= Item_func::tmp_table_field(t_arg);
|
||||||
|
|
||||||
if (!res)
|
if (!field)
|
||||||
my_message(ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES), MYF(0));
|
my_message(ER_OUT_OF_RESOURCES, ER(ER_OUT_OF_RESOURCES), MYF(0));
|
||||||
|
|
||||||
DBUG_RETURN(res);
|
DBUG_RETURN(field);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue