mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Merge remote-tracking branch '10.4' into 10.5
This commit is contained in:
@ -9034,13 +9034,13 @@ Type_handler_timestamp_common::Item_val_native_with_conversion(THD *thd,
|
||||
Item *item,
|
||||
Native *to) const
|
||||
{
|
||||
MYSQL_TIME ltime;
|
||||
if (item->type_handler()->type_handler_for_native_format() ==
|
||||
&type_handler_timestamp2)
|
||||
return item->val_native(thd, to);
|
||||
Datetime dt(thd, item, Datetime::Options(TIME_NO_ZERO_IN_DATE, thd));
|
||||
return
|
||||
item->get_date(thd, <ime, Datetime::Options(TIME_NO_ZERO_IN_DATE, thd)) ||
|
||||
TIME_to_native(thd, <ime, to, item->datetime_precision(thd));
|
||||
!dt.is_valid_datetime() ||
|
||||
TIME_to_native(thd, dt.get_mysql_time(), to, item->datetime_precision(thd));
|
||||
}
|
||||
|
||||
bool Type_handler_null::union_element_finalize(Item_type_holder *item) const
|
||||
|
Reference in New Issue
Block a user