mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
fixed incorrect type custing (fixed problem with runing tests with --debug (thanks, Sergei Gluhov spoted it))
This commit is contained in:
@ -80,9 +80,8 @@ static bool check_fields(THD *thd, List<Item> &items)
|
||||
we make temporary copy of Item_field, to avoid influence of changing
|
||||
result_field on Item_ref which refer on this field
|
||||
*/
|
||||
field= new Item_field(thd, field);
|
||||
it.replace(field);
|
||||
((Item_field *)item)->register_item_tree_changing(it.ref());
|
||||
it.replace(new Item_field(thd, field));
|
||||
field->register_item_tree_changing(it.ref());
|
||||
}
|
||||
return FALSE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user