MDEV-3804:

MySQL fix for bug#11765413 removed (we have better and more general fix for the problem).

Test suite added.
This commit is contained in:
unknown 2012-10-11 12:09:21 +03:00
commit 8215ce4695
4 changed files with 22 additions and 6 deletions

View file

@ -6839,7 +6839,7 @@ bool Item_ref::fix_fields(THD *thd, Item **reference)
if (from_field != not_found_field)
{
Item_field* fld;
if (!(fld= new Item_field(thd, last_checked_context, from_field)))
if (!(fld= new Item_field(from_field)))
goto error;
thd->change_item_tree(reference, fld);
mark_as_dependent(thd, last_checked_context->select_lex,