From 5fae0cfe65f409b17d57781a17bcbfb008814dc7 Mon Sep 17 00:00:00 2001 From: Sergei Petrunia Date: Tue, 20 Oct 2026 20:06:34 +0300 Subject: [PATCH] In Item::dbug_check_shallow_copy_type, assume that cloning creates one item. --- sql/item.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/sql/item.cc b/sql/item.cc index 0529fa75c93..937647a8c7f 100644 --- a/sql/item.cc +++ b/sql/item.cc @@ -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))