diff options
Diffstat (limited to 'sql/field.h')
-rw-r--r-- | sql/field.h | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sql/field.h b/sql/field.h index b35b31bb444..8b080a0d06f 100644 --- a/sql/field.h +++ b/sql/field.h @@ -2756,11 +2756,7 @@ public: } void store_TIME(my_time_t timestamp, ulong sec_part) { - timeval tv; - tv.tv_sec= timestamp; - tv.tv_usec= sec_part; - my_timeval_trunc(&tv, decimals()); - store_TIMEVAL(tv); + store_TIMEVAL(Timeval(timestamp, sec_part).trunc(decimals())); } bool get_date(MYSQL_TIME *ltime, ulonglong fuzzydate); uchar *pack(uchar *to, const uchar *from, |