summaryrefslogtreecommitdiff
path: root/sql/time.cc
diff options
context:
space:
mode:
authorram@gw.mysql.r18.ru <>2004-05-18 12:16:00 +0500
committerram@gw.mysql.r18.ru <>2004-05-18 12:16:00 +0500
commit0f3ab4174e909cd5a306435ed9aae4b1fcdcf6de (patch)
tree5e23ee93b1f002b7db8821ca317fc8ccee130dd5 /sql/time.cc
parenta79a3f5724cb577a37f3337ca7ae429b6dc56e9c (diff)
downloadmariadb-git-0f3ab4174e909cd5a306435ed9aae4b1fcdcf6de.tar.gz
A fix (Bug #3728: Missing warning in 4.1).
Diffstat (limited to 'sql/time.cc')
-rw-r--r--sql/time.cc2
1 files changed, 1 insertions, 1 deletions
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)+