summaryrefslogtreecommitdiff
path: root/sql-common
diff options
context:
space:
mode:
authorunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-03-26 13:45:02 +0500
committerunknown <ramil/ram@mysql.com/ramil.myoffice.izhnet.ru>2007-03-26 13:45:02 +0500
commite77cdbe2c01a1bbab0a2a92507fe0621ca1d4797 (patch)
treec50e2c46ed2e9e087c0d26df5d1f5fc235692c8f /sql-common
parentd59272fb3d138e940f56622c20813b032874e946 (diff)
parent34d20085f320334e7d6e561d8f85a90f31fa784a (diff)
downloadmariadb-git-e77cdbe2c01a1bbab0a2a92507fe0621ca1d4797.tar.gz
Merge rkalimullin@bk-internal.mysql.com:/home/bk/mysql-4.1-maint
into mysql.com:/home/ram/work/b25301/b25301.4.1 sql-common/my_time.c: Auto merged
Diffstat (limited to 'sql-common')
-rw-r--r--sql-common/my_time.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/sql-common/my_time.c b/sql-common/my_time.c
index 77226da3dc8..8f3646e84eb 100644
--- a/sql-common/my_time.c
+++ b/sql-common/my_time.c
@@ -350,10 +350,7 @@ str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
l_time->year > 9999 || l_time->month > 12 ||
l_time->day > 31 || l_time->hour > 23 ||
l_time->minute > 59 || l_time->second > 59 ||
- (!(flags & TIME_FUZZY_DATE) &&
- (l_time->month == 0 || l_time->day == 0)) ||
- (l_time->year == 0 && l_time->month == 0 && l_time->day == 0 &&
- (l_time->hour != 0 || l_time->minute != 0 || l_time->second != 0)))
+ (!(flags & TIME_FUZZY_DATE) && (l_time->month == 0 || l_time->day == 0)))
{
/* Only give warning for a zero date if there is some garbage after */
if (!not_zero_date) /* If zero date */