From 0f3ab4174e909cd5a306435ed9aae4b1fcdcf6de Mon Sep 17 00:00:00 2001 From: "ram@gw.mysql.r18.ru" <> Date: Tue, 18 May 2004 12:16:00 +0500 Subject: A fix (Bug #3728: Missing warning in 4.1). --- sql/time.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'sql/time.cc') diff --git a/sql/time.cc b/sql/time.cc index 7fb466f6b97..a5e081dfb30 100644 --- a/sql/time.cc +++ b/sql/time.cc @@ -667,7 +667,7 @@ longlong str_to_datetime(const char *str,uint length, uint fuzzy_date) { TIME l_time; if (str_to_TIME(str,length,&l_time,fuzzy_date) <= TIMESTAMP_DATETIME_ERROR) - return(0); + return -1; return (longlong) (l_time.year*LL(10000000000) + l_time.month*LL(100000000)+ l_time.day*LL(1000000)+ -- cgit v1.2.1