From 7961bc4b890071f281da88845489cdddc54c289b Mon Sep 17 00:00:00 2001 From: Sergei Golubchik Date: Mon, 19 Feb 2018 15:53:31 +0100 Subject: helper append_interval(String*) --- sql/sql_time.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'sql/sql_time.h') diff --git a/sql/sql_time.h b/sql/sql_time.h index d7d04d77f0e..d3607a28a76 100644 --- a/sql/sql_time.h +++ b/sql/sql_time.h @@ -139,9 +139,11 @@ bool my_TIME_to_str(const MYSQL_TIME *ltime, String *str, uint dec); /* MYSQL_TIME operations */ bool date_add_interval(MYSQL_TIME *ltime, interval_type int_type, - INTERVAL interval); + const INTERVAL &interval); bool calc_time_diff(const MYSQL_TIME *l_time1, const MYSQL_TIME *l_time2, int l_sign, longlong *seconds_out, long *microseconds_out); +int append_interval(String *str, interval_type int_type, + const INTERVAL &interval); /** Calculate time difference between two MYSQL_TIME values and store the result as an out MYSQL_TIME value in MYSQL_TIMESTAMP_TIME format. -- cgit v1.2.1