1
0
mirror of https://github.com/MariaDB/server.git synced 2026-01-06 05:22:24 +03:00

Fix for bug #23653: Crash if last_day('0000-00-00')

As get_arg0_date() in the Item_func_last_day::get_date() returns 
0000-00-00 date sometimes, we have to check ltime->month for 0 after the call.
This commit is contained in:
ramil/ram@mysql.com/myoffice.izhnet.ru
2006-11-09 16:17:50 +04:00
parent c2aca91b7f
commit 4b823e045f
3 changed files with 11 additions and 1 deletions

View File

@@ -446,4 +446,10 @@ union
union
(select time_format(timediff(now(), DATE_SUB(now(),INTERVAL 5 HOUR)),'%k') As H);
#
# Bug #23653: crash if last_day('0000-00-00')
#
select last_day('0000-00-00');
--echo End of 4.1 tests