1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

MDEV-10352 Server crashes in Field::set_default on CREATE TABLE

fix Item_default_value not to pretend being const_item
if the field's default_value expression isn't parsed yet
This commit is contained in:
Sergei Golubchik
2017-01-24 22:57:08 +01:00
parent b6a3917b05
commit d2f84ab978
3 changed files with 13 additions and 3 deletions

View File

@@ -3362,4 +3362,6 @@ a b t
4 5 4 also expression DEFAULT(0)+0
4 5 5 the value of the DEFAULT(a), that is b
drop table t1;
create table t1 (col1 int default(-(default(col1))));
ERROR 01000: Expression for field `col1` is refering to uninitialized field `col1`
# end of 10.2 test