From d8ea8a3d13d2a754a1e80d11619ba3347bb7ee5f Mon Sep 17 00:00:00 2001 From: unknown Date: Wed, 12 Mar 2014 12:34:16 +0200 Subject: 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(-) (limited to 'sql') diff --git a/sql/item.h b/sql/item.h index 80f8ef966bb..e8619ca4f92 100644 --- a/sql/item.h +++ b/sql/item.h @@ -3551,7 +3551,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); } -- cgit v1.2.1