mirror of
https://github.com/MariaDB/server.git
synced 2026-10-23 18:49:29 +03:00
In Item::dbug_check_shallow_copy_type, assume that cloning creates one item.
This commit is contained in:
@@ -12337,6 +12337,7 @@ void Item::dbug_check_shallow_copy_type(THD *thd) const
|
||||
To achieve this, unlink it from thd->free_list and delete ourselves.
|
||||
Note that this currently requires that the copy is last in the list (TODO?)
|
||||
*/
|
||||
DBUG_ASSERT(thd->free_list == item_copy);
|
||||
if (thd->free_list == item_copy)
|
||||
thd->free_list= item_copy->next;
|
||||
if (typeid(*item_copy) != typeid(*this))
|
||||
|
||||
Reference in New Issue
Block a user