summaryrefslogtreecommitdiff
path: root/sql/sql_class.cc
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2018-03-21 12:13:37 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2018-03-21 12:13:37 +0100
commit49a443c53a7f01812299f20e94c7209579efd881 (patch)
tree175777786fe48137ac6350860b7aeffb933202e7 /sql/sql_class.cc
parent0943b33de3daa0fcbf58803be8e991941de63218 (diff)
downloadmariadb-git-bb-5.5-MDEV-15492.tar.gz
MDEV-15492: Subquery crash similar to MDEV-10050bb-5.5-MDEV-15492
Detection of first execution of PS fixed. More debug info.
Diffstat (limited to 'sql/sql_class.cc')
-rw-r--r--sql/sql_class.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/sql/sql_class.cc b/sql/sql_class.cc
index c88c13b9524..ff06b7fb3dc 100644
--- a/sql/sql_class.cc
+++ b/sql/sql_class.cc
@@ -2252,15 +2252,19 @@ void THD::check_and_register_item_tree_change(Item **place, Item **new_value,
void THD::rollback_item_tree_changes()
{
+ DBUG_ENTER("THD::rollback_item_tree_changes");
I_List_iterator<Item_change_record> it(change_list);
Item_change_record *change;
while ((change= it++))
{
+ DBUG_PRINT("info", ("Rollback: %p (%p) <- %p",
+ *change->place, change->place, change->old_value));
*change->place= change->old_value;
}
/* We can forget about changes memory: it's allocated in runtime memroot */
change_list.empty();
+ DBUG_VOID_RETURN;
}