Skip to content
Permalink
Browse files

MDEV-10354 Assertion `! is_set()' failed in Diagnostics_area::set_ok_…

…status on CREATE TABLE with invalid default

test case
  • Loading branch information...
vuvova committed Mar 23, 2017
1 parent 7a1b058 commit f63007a37192ee541d791fb40ea8b0adad1464f3
Showing with 8 additions and 0 deletions.
  1. +2 −0 mysql-test/r/default.result
  2. +6 −0 mysql-test/t/default.test
@@ -3364,4 +3364,6 @@ a b t
drop table t1;
create table t1 (col1 int default(-(default(col1))));
ERROR 01000: Expression for field `col1` is refering to uninitialized field `col1`
create table t1 (col int default (yearweek((exp(710)))));
ERROR 22003: DOUBLE value is out of range in 'exp(710)'
# end of 10.2 test
@@ -2075,4 +2075,10 @@ drop table t1;
--error ER_EXPRESSION_REFERS_TO_UNINIT_FIELD
create table t1 (col1 int default(-(default(col1))));

#
# MDEV-10354 Assertion `! is_set()' failed in Diagnostics_area::set_ok_status on CREATE TABLE with invalid default
#
--error ER_DATA_OUT_OF_RANGE
create table t1 (col int default (yearweek((exp(710)))));

--echo # end of 10.2 test

0 comments on commit f63007a

Please sign in to comment.
You can’t perform that action at this time.