Commit 80ae2f6c authored by unknown's avatar unknown

Fix get_time bug


sql/field.cc:
  str_to_time returns bool, not timestamp
parent 22f568dc
......@@ -328,7 +328,7 @@ bool Field::get_time(TIME *ltime)
char buff[40];
String tmp(buff,sizeof(buff)),tmp2,*res;
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 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