1
0
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:
Sergei Petrunia
2026-10-20 20:06:34 +03:00
parent 1f5d1c2f56
commit 5fae0cfe65

View File

@@ -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))