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.
This commit is contained in:
unknown 2014-03-12 15:50:00 +02:00
parent 5f5d2db141
commit cd29dc9821

View file

@ -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);
}