1
0
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:
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

@ -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();
}
}