From 22de18ddcb97640f8f90c1c88d1dcd795ba1070f Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 7 Sep 2012 09:17:31 +0300 Subject: [PATCH] Fix of MDEV-511. As far as we reopen tables so TABLE become invalid we should remove the pointer on cleanup(). --- sql/item.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/sql/item.h b/sql/item.h index 9bcb913d5c5..3136bb00394 100644 --- a/sql/item.h +++ b/sql/item.h @@ -3287,6 +3287,12 @@ public: else Item_direct_ref::save_in_result_field(no_conversions); } + + void cleanup() + { + null_ref_table= NULL; + Item_direct_ref::cleanup(); + } };