diff options
author | unknown <ramil@mysql.com> | 2005-06-01 17:09:46 +0500 |
---|---|---|
committer | unknown <ramil@mysql.com> | 2005-06-01 17:09:46 +0500 |
commit | 44af4dbdf12f32ee5cb2be6d747c02b32912bf06 (patch) | |
tree | e65fd2d7d6b7221768c75e55daf08aeae3361b68 /mysql-test/t | |
parent | 3f7b0f708e046d0a5ffe0ef96c1f52471be7b397 (diff) | |
download | mariadb-git-44af4dbdf12f32ee5cb2be6d747c02b32912bf06.tar.gz |
A fix (bug #10568: Function 'LAST_DAY(date)' does not return NULL for invalid argument).
sql/item_timefunc.cc:
A fix (bug #10568: Function 'LAST_DAY(date)' does not return NULL for invalid argument).
Return error for partial dates as well.
Diffstat (limited to 'mysql-test/t')
-rw-r--r-- | mysql-test/t/func_time.test | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/mysql-test/t/func_time.test b/mysql-test/t/func_time.test index 80ddb205110..b44215c97b1 100644 --- a/mysql-test/t/func_time.test +++ b/mysql-test/t/func_time.test @@ -336,3 +336,11 @@ DROP TABLE t1; explain extended select timestampdiff(SQL_TSI_WEEK, '2001-02-01', '2001-05-01') as a1, timestampdiff(SQL_TSI_FRAC_SECOND, '2001-02-01 12:59:59.120000', '2001-05-01 12:58:58.119999') as a2; + +# +# Bug #10568 +# + +select last_day('2005-00-00'); +select last_day('2005-00-01'); +select last_day('2005-01-00'); |