mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 07:45:44 +00:00
Merge mysql.com:/usr/home/ram/work/bug21789/my50-bug21789
into mysql.com:/usr/home/ram/work/bug21789/my51-bug21789 mysql-test/r/date_formats.result: Auto merged sql-common/my_time.c: Auto merged
This commit is contained in:
@ -411,7 +411,9 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
|
||||
if (number_of_fields < 3 ||
|
||||
l_time->year > 9999 || l_time->month > 12 ||
|
||||
l_time->day > 31 || l_time->hour > 23 ||
|
||||
l_time->minute > 59 || l_time->second > 59)
|
||||
l_time->minute > 59 || l_time->second > 59 ||
|
||||
(l_time->year == 0 && l_time->month == 0 && l_time->day == 0 &&
|
||||
(l_time->hour != 0 || l_time->minute != 0 || l_time->second != 0)))
|
||||
{
|
||||
/* Only give warning for a zero date if there is some garbage after */
|
||||
if (!not_zero_date) /* If zero date */
|
||||
|
Reference in New Issue
Block a user