diff options
author | Alexander Barkov <bar@mariadb.org> | 2017-10-10 10:35:12 +0400 |
---|---|---|
committer | Alexander Barkov <bar@mariadb.org> | 2017-10-10 10:35:12 +0400 |
commit | c2509a1588ee1dc7351b67b2f9149003540015c4 (patch) | |
tree | 23609156a993241b6254719e41b58de91aa1ca38 /mysql-test/r/func_time.result | |
parent | e30b6a983fe135dd1af0c79c81dbdb5b14b881c8 (diff) | |
download | mariadb-git-c2509a1588ee1dc7351b67b2f9149003540015c4.tar.gz |
MDEV-13972 crash in Item_func_sec_to_time::get_date
Diffstat (limited to 'mysql-test/r/func_time.result')
-rw-r--r-- | mysql-test/r/func_time.result | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/mysql-test/r/func_time.result b/mysql-test/r/func_time.result index fa159972c9a..cffed8eae5b 100644 --- a/mysql-test/r/func_time.result +++ b/mysql-test/r/func_time.result @@ -2638,5 +2638,25 @@ a DROP TABLE t1; SET sql_mode=DEFAULT; # +# MDEV-13972 crash in Item_func_sec_to_time::get_date +# +DO TO_DAYS(SEC_TO_TIME(TIME(CEILING(UUID())))); +DO TO_DAYS(SEC_TO_TIME(MAKEDATE('',RAND(~(''))))); +Warnings: +Warning 1292 Truncated incorrect INTEGER value: '' +Warning 1292 Truncated incorrect INTEGER value: '' +Warning 1292 Truncated incorrect INTEGER value: '' +Warning 1292 Truncated incorrect time value: '20000101' +SELECT TO_DAYS(SEC_TO_TIME(MAKEDATE(0,RAND(~0)))); +TO_DAYS(SEC_TO_TIME(MAKEDATE(0,RAND(~0)))) +0 +Warnings: +Warning 1292 Truncated incorrect time value: '20000101' +SELECT SEC_TO_TIME(MAKEDATE(0,RAND(~0))); +SEC_TO_TIME(MAKEDATE(0,RAND(~0))) +838:59:59 +Warnings: +Warning 1292 Truncated incorrect time value: '20000101' +# # End of 5.5 tests # |