From e8611ac162fe5be0220f310576a48f8b6f350afa Mon Sep 17 00:00:00 2001 From: Alexander Barkov Date: Thu, 6 Dec 2018 17:40:28 +0400 Subject: MDEV-13995 MAX(timestamp) returns a wrong result near DST change --- sql/structs.h | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'sql/structs.h') diff --git a/sql/structs.h b/sql/structs.h index dec1e4de0c7..8728dee1918 100644 --- a/sql/structs.h +++ b/sql/structs.h @@ -847,12 +847,17 @@ public: class Timeval: public timeval { +protected: + Timeval() { } public: Timeval(my_time_t sec, ulong usec) { tv_sec= sec; tv_usec= usec; } + explicit Timeval(const timeval &tv) + :timeval(tv) + { } }; -- cgit v1.2.1