mirror of
https://github.com/MariaDB/server.git
synced 2025-01-31 02:51:44 +01:00
item.cc:
merge fixes
This commit is contained in:
parent
ccf17e71b0
commit
28faf5e468
1 changed files with 3 additions and 3 deletions
|
@ -3727,16 +3727,16 @@ bool Item_field::fix_fields(THD *thd, Item **reference)
|
|||
Item_ref to point to the Item in the select list and replace the
|
||||
Item_field created by the parser with the new Item_ref.
|
||||
*/
|
||||
Item_ref *rf= new Item_ref(db_name,table_name,field_name);
|
||||
Item_ref *rf= new Item_ref(context, db_name,table_name,field_name);
|
||||
if (!rf)
|
||||
return 1;
|
||||
thd->change_item_tree(ref, rf);
|
||||
thd->change_item_tree(reference, rf);
|
||||
/*
|
||||
Because Item_ref never substitutes itself with other items
|
||||
in Item_ref::fix_fields(), we can safely use the original
|
||||
pointer to it even after fix_fields()
|
||||
*/
|
||||
return rf->fix_fields(thd, tables, ref) || rf->check_cols(1);
|
||||
return rf->fix_fields(thd, reference) || rf->check_cols(1);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue