mirror of
https://github.com/MariaDB/server.git
synced 2026-05-04 22:25:32 +02:00
Fix 6 warnings from win64, where one is a potential bug.
sql/event_data_objects.cc: Passing time as time_t to function my_time_t requires cast to my_time_t since my_time_t are only required to be 32bits. sql/log.cc: Using time_t instead of my_time_t when calculating current_time. This is a potential bugfix for problem with mysql_system_db reporting slow log as crashed. sql/sql_show.cc: Passing time as time_t to function my_time_t requires cast to my_time_t since my_time_t are only required to be 32bits.
This commit is contained in:
parent
90f02ac861
commit
10ddaa7853
3 changed files with 7 additions and 6 deletions
|
|
@ -3981,20 +3981,21 @@ static void store_schema_partitions_record(THD *thd, TABLE *schema_table,
|
|||
if (stat_info.create_time)
|
||||
{
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(&time,
|
||||
stat_info.create_time);
|
||||
(my_time_t)stat_info.create_time);
|
||||
table->field[18]->store_time(&time, MYSQL_TIMESTAMP_DATETIME);
|
||||
table->field[18]->set_notnull();
|
||||
}
|
||||
if (stat_info.update_time)
|
||||
{
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(&time,
|
||||
stat_info.update_time);
|
||||
(my_time_t)stat_info.update_time);
|
||||
table->field[19]->store_time(&time, MYSQL_TIMESTAMP_DATETIME);
|
||||
table->field[19]->set_notnull();
|
||||
}
|
||||
if (stat_info.check_time)
|
||||
{
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(&time, stat_info.check_time);
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(&time,
|
||||
(my_time_t)stat_info.check_time);
|
||||
table->field[20]->store_time(&time, MYSQL_TIMESTAMP_DATETIME);
|
||||
table->field[20]->set_notnull();
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue