diff options
author | unknown <sanja@montyprogram.com> | 2014-03-12 15:50:00 +0200 |
---|---|---|
committer | unknown <sanja@montyprogram.com> | 2014-03-12 15:50:00 +0200 |
commit | cd29dc98216d822ad701d604b3eda886e1db2aaa (patch) | |
tree | 04f1a8fb398d60e9e07fad8488c005a0e99f0ade | |
parent | 5f5d2db1415cb32f03b39224267b83ac721ff68c (diff) | |
download | mariadb-git-cd29dc98216d822ad701d604b3eda886e1db2aaa.tar.gz |
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.
-rw-r--r-- | sql/item.h | 2 |
1 files changed, 1 insertions, 1 deletions
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); } |