1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-27 18:02:13 +03:00

compilation error

extended initializers are only allowed since c++11
This commit is contained in:
Sergei Golubchik
2022-10-01 16:11:13 +02:00
parent f65ba9aeb7
commit fa6d7e4e98
2 changed files with 2 additions and 3 deletions

View File

@ -1482,8 +1482,7 @@ bool Table_triggers_list::check_n_load(THD *thd, const LEX_CSTRING *db,
trigger->sql_mode= sql_mode;
trigger->definition= *trg_create_str;
trigger->hr_create_time=
my_hrtime_t({trg_create_time ? *trg_create_time : 0});
trigger->hr_create_time.val= trg_create_time ? *trg_create_time : 0;
/*
Fix time if in 100th of second (comparison with max uint * 100
(max possible timestamp in the old format))