mirror of
https://github.com/MariaDB/server.git
synced 2025-07-27 18:02:13 +03:00
MDEV-17219 Assertion `!t->fraction_remainder(decimals())' failed in Field_time::store_TIME_with_warning
This commit is contained in:
@ -800,6 +800,15 @@ public:
|
||||
{
|
||||
trunc(dec);
|
||||
}
|
||||
Time(int *warn, longlong nr, bool unsigned_val, uint dec)
|
||||
:Time(warn, nr, unsigned_val)
|
||||
{
|
||||
/*
|
||||
Decimal digit truncation is needed here in case if nr was out
|
||||
of the supported TIME range, so "this" was set to '838:59:59.999999'.
|
||||
*/
|
||||
trunc(dec);
|
||||
}
|
||||
Time(int *warn, const my_decimal *d, uint dec)
|
||||
:Temporal(Time(warn, d))
|
||||
{
|
||||
|
Reference in New Issue
Block a user