diff options
author | unknown <ram@gw.mysql.r18.ru> | 2004-05-18 12:16:00 +0500 |
---|---|---|
committer | unknown <ram@gw.mysql.r18.ru> | 2004-05-18 12:16:00 +0500 |
commit | 4471aadb7cc34dedbd29f15c372e72f5c468f5b6 (patch) | |
tree | 5e23ee93b1f002b7db8821ca317fc8ccee130dd5 /sql/time.cc | |
parent | 8ef62cc1ef3e2b16795fa5fbbc45bcdf422f344c (diff) | |
download | mariadb-git-4471aadb7cc34dedbd29f15c372e72f5c468f5b6.tar.gz |
A fix (Bug #3728: Missing warning in 4.1).
Diffstat (limited to 'sql/time.cc')
-rw-r--r-- | sql/time.cc | 2 |
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)+ |