diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-05-22 17:13:15 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-05-22 17:13:15 +0400 |
commit | 9b79888df82259743284501af5b156a18edc427f (patch) | |
tree | 3b73541947210fb515f61db1c630ef7a05b200ed /mysql-test/t/func_time.test | |
parent | c84bbeda7f42e940553aee5377f64d2452872138 (diff) | |
download | mariadb-git-9b79888df82259743284501af5b156a18edc427f.tar.gz |
MDEV-12866 Out-of-range error with CREATE..SELECT..TO_SECONDS(NOW())
Diffstat (limited to 'mysql-test/t/func_time.test')
-rw-r--r-- | mysql-test/t/func_time.test | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 216b059038b..a3f542aaf57 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -1871,3 +1871,12 @@ DROP TABLE t2; DROP VIEW v1; DROP TABLE t1; SET sql_mode=DEFAULT; + +--echo # +--echo # MDEV-12866 Out-of-range error with CREATE..SELECT..TO_SECONDS(NOW()) +--echo # +SET sql_mode=STRICT_ALL_TABLES; +CREATE TABLE t1 AS SELECT TO_SECONDS('9999-12-31 23:59:59'); +SHOW CREATE TABLE t1; +DROP TABLE t1; +SET sql_mode=DEFAULT; |