mirror of
https://github.com/MariaDB/server.git
synced 2025-07-29 05:21:33 +03:00
MDEV-17928 Conversion from TIMESTAMP to VARCHAR SP variables does not work well on fractional digits
This commit is contained in:
@ -7495,7 +7495,8 @@ static int get_schema_partitions_record(THD *thd, TABLE_LIST *tables,
|
||||
}
|
||||
else if (part_info->vers_info->interval.is_set())
|
||||
{
|
||||
table->field[11]->store_timestamp((my_time_t)part_elem->range_value, 0);
|
||||
Timeval tv((my_time_t) part_elem->range_value, 0);
|
||||
table->field[11]->store_timestamp_dec(tv, AUTO_SEC_PART_DIGITS);
|
||||
table->field[11]->set_notnull();
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user