Commit 651ca8fa authored by unknown's avatar unknown

Fix get_time bug


sql/field.cc:
  str_to_time returns bool, not timestamp
parent 438721f6
...@@ -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