summaryrefslogtreecommitdiff
path: root/mysql-test/t/default.test
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2017-01-24 22:57:08 +0100
committerSergei Golubchik <serg@mariadb.org>2017-02-13 18:12:04 +0100
commitd2f84ab978c596fcaa96e0d53282b57f6225e50f (patch)
tree37fd91a75aa8e38d0ef2260d42654886f51ac547 /mysql-test/t/default.test
parentb6a3917b0555a0fdaee7c3f13423009f4f4b878d (diff)
downloadmariadb-git-d2f84ab978c596fcaa96e0d53282b57f6225e50f.tar.gz
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
Diffstat (limited to 'mysql-test/t/default.test')
-rw-r--r--mysql-test/t/default.test6
1 files changed, 6 insertions, 0 deletions
diff --git a/mysql-test/t/default.test b/mysql-test/t/default.test
index c96f8ac239b..b9f97b08a72 100644
--- a/mysql-test/t/default.test
+++ b/mysql-test/t/default.test
@@ -2069,4 +2069,10 @@ insert into t1 values (b, 5, '5 the value of the DEFAULT(a), that is b');
select * from t1 order by t;
drop table t1;
+#
+# MDEV-10352 Server crashes in Field::set_default on CREATE TABLE
+#
+--error ER_EXPRESSION_REFERS_TO_UNINIT_FIELD
+create table t1 (col1 int default(-(default(col1))));
+
--echo # end of 10.2 test