mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
Fix some conversion warnings.
This commit is contained in:
@ -2437,7 +2437,7 @@ public:
|
||||
size_t size __attribute__((unused)))
|
||||
{ TRASH(ptr, size); }
|
||||
|
||||
ulong thread_id;
|
||||
my_thread_id thread_id;
|
||||
uint32 os_thread_id;
|
||||
ulonglong start_time;
|
||||
uint command;
|
||||
@ -2611,7 +2611,7 @@ void mysqld_list_processes(THD *thd,const char *user, bool verbose)
|
||||
while ((thd_info=thread_infos.get()))
|
||||
{
|
||||
protocol->prepare_for_resend();
|
||||
protocol->store((ulonglong) thd_info->thread_id);
|
||||
protocol->store(thd_info->thread_id);
|
||||
protocol->store(thd_info->user, system_charset_info);
|
||||
protocol->store(thd_info->host, system_charset_info);
|
||||
protocol->store(thd_info->db, system_charset_info);
|
||||
@ -6487,7 +6487,7 @@ static bool store_trigger(THD *thd, Trigger *trigger,
|
||||
{
|
||||
table->field[16]->set_notnull();
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(×tamp,
|
||||
trigger->create_time/100);
|
||||
(my_time_t)(trigger->create_time/100));
|
||||
/* timestamp is with 6 digits */
|
||||
timestamp.second_part= (trigger->create_time % 100) * 10000;
|
||||
((Field_temporal_with_date*) table->field[16])->store_time_dec(×tamp,
|
||||
@ -9498,7 +9498,7 @@ static bool show_create_trigger_impl(THD *thd, Trigger *trigger)
|
||||
{
|
||||
MYSQL_TIME timestamp;
|
||||
thd->variables.time_zone->gmt_sec_to_TIME(×tamp,
|
||||
trigger->create_time/100);
|
||||
(my_time_t)(trigger->create_time/100));
|
||||
timestamp.second_part= (trigger->create_time % 100) * 10000;
|
||||
p->store(×tamp, 2);
|
||||
}
|
||||
|
Reference in New Issue
Block a user