summaryrefslogtreecommitdiff
path: root/sql/item.h
diff options
context:
space:
mode:
authorunknown <sanja@montyprogram.com>2012-09-07 09:39:51 +0300
committerunknown <sanja@montyprogram.com>2012-09-07 09:39:51 +0300
commit83bdf56ebdea39ab917b802d6480612a251e29ca (patch)
treef4403f8cb4b00c294c6a1992fd207c65f0fde2f4 /sql/item.h
parent54bb28d4a151d0eb5c3b74edb40ddf6e118c124b (diff)
downloadmariadb-git-83bdf56ebdea39ab917b802d6480612a251e29ca.tar.gz
Fix of MDEV-511.
As far as we reopen tables so TABLE become invalid we should remove the pointer on cleanup().
Diffstat (limited to 'sql/item.h')
-rw-r--r--sql/item.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/sql/item.h b/sql/item.h
index 5dde9cf9a3f..6324e900f24 100644
--- a/sql/item.h
+++ b/sql/item.h
@@ -3056,6 +3056,12 @@ public:
else
Item_direct_ref::save_in_result_field(no_conversions);
}
+
+ void cleanup()
+ {
+ null_ref_table= NULL;
+ Item_direct_ref::cleanup();
+ }
};