1
0
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:
bell@sanja.is.com.ua
2004-10-09 18:51:19 +03:00
parent ffc8bd5986
commit c287345cb8
3 changed files with 22 additions and 3 deletions

View File

@ -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;
}