1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

MDEV-17928 Conversion from TIMESTAMP to VARCHAR SP variables does not work well on fractional digits

This commit is contained in:
Alexander Barkov
2018-12-08 16:10:44 +04:00
parent fac997feef
commit a25ce5ab4b
8 changed files with 94 additions and 15 deletions

View File

@ -2234,6 +2234,9 @@ public:
Timestamp(my_time_t timestamp, ulong sec_part)
:Timeval(timestamp, sec_part)
{ }
explicit Timestamp(const timeval &tv)
:Timeval(tv)
{ }
const struct timeval &tv() const { return *this; }
long fraction_remainder(uint dec) const
{