Commit cd29dc98 authored by unknown's avatar unknown

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.
parent 5f5d2db1
...@@ -2890,7 +2890,7 @@ class Item_default_value : public Item_field ...@@ -2890,7 +2890,7 @@ class Item_default_value : public Item_field
bool walk(Item_processor processor, bool walk_subquery, uchar *args) 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); (this->*processor)(args);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment