From 4447a02cf13a49876001a40ca7db8fdedb731fd5 Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Fri, 23 Nov 2018 19:04:42 +0400 Subject: MDEV-16991 Rounding vs truncation for TIME, DATETIME, TIMESTAMP --- include/my_time.h | 2 ++ 1 file changed, 2 insertions(+) (limited to 'include') diff --git a/include/my_time.h b/include/my_time.h index 94632bbbf38..27011be8b47 100644 --- a/include/my_time.h +++ b/include/my_time.h @@ -108,12 +108,14 @@ typedef struct st_mysql_time_status { int warnings; uint precision; + uint nanoseconds; } MYSQL_TIME_STATUS; static inline void my_time_status_init(MYSQL_TIME_STATUS *status) { status->warnings= 0; status->precision= 0; + status->nanoseconds= 0; } my_bool check_date(const MYSQL_TIME *ltime, my_bool not_zero_date, -- cgit v1.2.1