diff options
author | unknown <sanja@montyprogram.com> | 2012-09-07 09:39:51 +0300 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2012-09-07 09:39:51 +0300 |
commit | 83bdf56ebdea39ab917b802d6480612a251e29ca (patch) | |
tree | f4403f8cb4b00c294c6a1992fd207c65f0fde2f4 /sql/item.h | |
parent | 54bb28d4a151d0eb5c3b74edb40ddf6e118c124b (diff) | |
download | mariadb-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.h | 6 |
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(); + } }; |