1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

SQL: renamed vers_thd_get_now() to THD::query_start_TIME()

This commit is contained in:
Aleksey Midenkov
2017-06-02 16:53:24 +03:00
parent 397a891538
commit f915fe8eae
3 changed files with 19 additions and 22 deletions

View File

@ -6859,6 +6859,15 @@ static bool protect_against_unsafe_warning_flood(int unsafe_type)
DBUG_RETURN(unsafe_warning_suppression_active[unsafe_type]);
}
MYSQL_TIME THD::query_start_TIME()
{
MYSQL_TIME res;
variables.time_zone->gmt_sec_to_TIME(&res, query_start());
res.second_part= query_start_sec_part();
time_zone_used= 1;
return res;
}
/**
Auxiliary method used by @c binlog_query() to raise warnings.