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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user