diff options
author | unknown <ramil@mysql.com> | 2005-06-24 14:04:48 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-06-24 14:04:48 +0500 |
commit | 5aa793f72bfdf5e5903ad4999691fdb72f507de3 (patch) | |
tree | 19613a2227e058872e7909d41f5cb75e2be435cf /mysql-test/t/func_time.test | |
parent | 77dc5c423fb9f22dfc931d1fd1a00715c1fca0e2 (diff) | |
download | mariadb-git-5aa793f72bfdf5e5903ad4999691fdb72f507de3.tar.gz |
backport for #10568: Function 'LAST_DAY(date)' does not return NULL for invalid argument.
Diffstat (limited to 'mysql-test/t/func_time.test')
-rw-r--r-- | mysql-test/t/func_time.test | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 0f495ef891d..9e2703da110 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -307,3 +307,10 @@ INSERT INTO t1 VALUES (NOW()); SELECT count(*) FROM t1 WHERE d>FROM_DAYS(TO_DAYS(@TMP)) AND d<=FROM_DAYS(TO_DAYS(@TMP)+1); DROP TABLE t1; +# +# Bug #10568 +# + +select last_day('2005-00-00'); +select last_day('2005-00-01'); +select last_day('2005-01-00'); |