From cd29dc98216d822ad701d604b3eda886e1db2aaa Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 12 Mar 2014 15:50:00 +0200 Subject: [PATCH] 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. --- sql/item.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sql/item.h b/sql/item.h index 798abb5112a..fd4b8cb3e14 100644 --- a/sql/item.h +++ b/sql/item.h @@ -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); }