Commit 76845791 authored by tim@cane.mysql.fi's avatar tim@cane.mysql.fi

Fix get_time bug

parent 1d25808f
...@@ -328,7 +328,7 @@ bool Field::get_time(TIME *ltime) ...@@ -328,7 +328,7 @@ bool Field::get_time(TIME *ltime)
char buff[40]; char buff[40];
String tmp(buff,sizeof(buff)),tmp2,*res; String tmp(buff,sizeof(buff)),tmp2,*res;
if (!(res=val_str(&tmp,&tmp2)) || if (!(res=val_str(&tmp,&tmp2)) ||
str_to_time(res->ptr(),res->length(),ltime) == TIMESTAMP_NONE) str_to_time(res->ptr(),res->length(),ltime))
return 1; return 1;
return 0; return 0;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment