[Commits] Rev 3528: Fix of MDEV-511. in file:///home/bell/maria/bzr/work-maria-5.5-MDEV-511/

sanja at montyprogram.com sanja at montyprogram.com
Fri Sep 7 09:17:32 EEST 2012


At file:///home/bell/maria/bzr/work-maria-5.5-MDEV-511/

------------------------------------------------------------
revno: 3528
revision-id: sanja at montyprogram.com-20120907061731-099n43e6jp358mbh
parent: sergii at pisem.net-20120906080809-8ooa45j3yx8c9o6b
committer: sanja at montyprogram.com
branch nick: work-maria-5.5-MDEV-511
timestamp: Fri 2012-09-07 09:17:31 +0300
message:
  Fix of MDEV-511.
  
  As far as we reopen tables so TABLE become invalid we should remove the pointer on cleanup().
-------------- next part --------------
=== modified file 'sql/item.h'
--- a/sql/item.h	2012-09-05 21:14:33 +0000
+++ b/sql/item.h	2012-09-07 06:17:31 +0000
@@ -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();
+  }
 };
 
 



More information about the commits mailing list