summaryrefslogtreecommitdiff
path: root/mysql-test/t
diff options
context:
space:
mode:
authorunknown <ramil@mysql.com>2005-06-01 17:09:46 +0500
committerunknown <ramil@mysql.com>2005-06-01 17:09:46 +0500
commit44af4dbdf12f32ee5cb2be6d747c02b32912bf06 (patch)
treee65fd2d7d6b7221768c75e55daf08aeae3361b68 /mysql-test/t
parent3f7b0f708e046d0a5ffe0ef96c1f52471be7b397 (diff)
downloadmariadb-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.test8
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');