diff options
author | Sergei Golubchik <serg@mariadb.org> | 2022-07-03 17:35:27 +0200 |
---|---|---|
committer | Oleksandr Byelkin <sanja@mariadb.com> | 2022-08-10 15:03:10 +0200 |
commit | c38b8f49b8cbe43e20d7710b0d291dd92490fced (patch) | |
tree | 9811f1052beb71247936933cea7a3732fb7d324a /sql/sql_time.cc | |
parent | 4ce1470a700809c7b62ade40ddb95063a0e47402 (diff) | |
download | mariadb-git-c38b8f49b8cbe43e20d7710b0d291dd92490fced.tar.gz |
cleanup: consolidate binlog-related THD::*_used into one bitmap
Diffstat (limited to 'sql/sql_time.cc')
-rw-r--r-- | sql/sql_time.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sql/sql_time.cc b/sql/sql_time.cc index 8bb96dfa776..d3b6b6c2c14 100644 --- a/sql/sql_time.cc +++ b/sql/sql_time.cc @@ -499,7 +499,7 @@ bool int_to_datetime_with_warn(THD *thd, const Longlong_hybrid &nr, my_time_t TIME_to_timestamp(THD *thd, const MYSQL_TIME *t, uint *error_code) { - thd->time_zone_used= 1; + thd->used|= THD::TIME_ZONE_USED; return thd->variables.time_zone->TIME_to_gmt_sec(t, error_code); } @@ -1265,7 +1265,7 @@ mix_date_and_time(MYSQL_TIME *to, const MYSQL_TIME *from) void set_current_date(THD *thd, MYSQL_TIME *to) { thd->variables.time_zone->gmt_sec_to_TIME(to, thd->query_start()); - thd->time_zone_used= 1; + thd->used|= THD::TIME_ZONE_USED; datetime_to_date(to); } |