[Commits] Rev 3218: MDEV-5717: Server crash with insert statement containing DEFAULT into view in file:///home/bell/maria/bzr/work-maria-5.1-MDEV-5717/

sanja at montyprogram.com sanja at montyprogram.com
Wed Mar 12 15:50:01 EET 2014


At file:///home/bell/maria/bzr/work-maria-5.1-MDEV-5717/

------------------------------------------------------------
revno: 3218
revision-id: sanja at montyprogram.com-20140312135000-bvn5uk6zio1jw5ap
parent: sergii at pisem.net-20140213070907-sq5fkt47u93og6t3
committer: sanja at montyprogram.com
branch nick: work-maria-5.1-MDEV-5717
timestamp: Wed 2014-03-12 15:50:00 +0200
message:
  MDEV-5717: Server crash with insert statement containing DEFAULT into view
  
  Item_default_value::arg can be NULL so walk() should take it into consideration.
-------------- next part --------------
=== modified file 'sql/item.h'
--- a/sql/item.h	2012-08-24 08:06:16 +0000
+++ b/sql/item.h	2014-03-12 13:50:00 +0000
@@ -2890,7 +2890,7 @@ public:
 
   bool walk(Item_processor processor, bool walk_subquery, uchar *args)
   {
-    return arg->walk(processor, walk_subquery, args) ||
+    return (arg && arg->walk(processor, walk_subquery, args)) ||
       (this->*processor)(args);
   }
 



More information about the commits mailing list