mirror of
https://github.com/MariaDB/server.git
synced 2026-05-07 07:35:32 +02:00
MDEV-16991 Rounding vs truncation for TIME, DATETIME, TIMESTAMP
This commit is contained in:
parent
27f3329ff6
commit
4447a02cf1
59 changed files with 4771 additions and 395 deletions
|
|
@ -438,19 +438,19 @@ void Field::do_field_temporal(Copy_field *copy, date_mode_t fuzzydate)
|
|||
|
||||
void Field::do_field_datetime(Copy_field *copy)
|
||||
{
|
||||
return do_field_temporal(copy, date_mode_t(0));
|
||||
return do_field_temporal(copy, Datetime::Options(TIME_CONV_NONE, current_thd));
|
||||
}
|
||||
|
||||
|
||||
void Field::do_field_date(Copy_field *copy)
|
||||
{
|
||||
return do_field_temporal(copy, date_mode_t(0));
|
||||
return do_field_temporal(copy, Date::Options(TIME_CONV_NONE));
|
||||
}
|
||||
|
||||
|
||||
void Field_time::do_field_time(Copy_field *copy)
|
||||
{
|
||||
return do_field_temporal(copy, TIME_TIME_ONLY);
|
||||
return do_field_temporal(copy, Time::Options(current_thd));
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue