1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-30 16:24:05 +03:00

MDEV-15141 Check constraint validation on a datetime field crashes the process

add the test case (the bug was fixed in d390e501eb)
This commit is contained in:
Sergei Golubchik
2018-03-12 20:35:38 +01:00
parent d390e501eb
commit 42529c4341
2 changed files with 12 additions and 0 deletions

View File

@ -152,3 +152,7 @@ a
1
NULL
drop table t1;
create table t1 (id int auto_increment primary key, datecol datetime, check (datecol>'0001-01-01 00:00:00'));
insert into t1 (datecol) values (now());
insert into t1 (datecol) values (now());
drop table t1;