Commit f63007a3 authored by Sergei Golubchik's avatar Sergei Golubchik

MDEV-10354 Assertion `! is_set()' failed in Diagnostics_area::set_ok_status on...

MDEV-10354 Assertion `! is_set()' failed in Diagnostics_area::set_ok_status on CREATE TABLE with invalid default

test case
parent 7a1b0582
...@@ -3364,4 +3364,6 @@ a b t ...@@ -3364,4 +3364,6 @@ a b t
drop table t1; drop table t1;
create table t1 (col1 int default(-(default(col1)))); create table t1 (col1 int default(-(default(col1))));
ERROR 01000: Expression for field `col1` is refering to uninitialized field `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 # end of 10.2 test
...@@ -2075,4 +2075,10 @@ drop table t1; ...@@ -2075,4 +2075,10 @@ drop table t1;
--error ER_EXPRESSION_REFERS_TO_UNINIT_FIELD --error ER_EXPRESSION_REFERS_TO_UNINIT_FIELD
create table t1 (col1 int default(-(default(col1)))); 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 --echo # end of 10.2 test
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment