summaryrefslogtreecommitdiff
path: root/sql/sql_time.h
diff options
context:
space:
mode:
authorSergei Golubchik <serg@mariadb.org>2018-02-19 15:53:31 +0100
committerSergei Golubchik <serg@mariadb.org>2018-02-23 15:33:24 +0100
commit7961bc4b890071f281da88845489cdddc54c289b (patch)
tree139c9834dafc239adb80c53730b5f495421607d0 /sql/sql_time.h
parent7e2c686b3f3f8d1480898c2b3997eddbc158609b (diff)
downloadmariadb-git-7961bc4b890071f281da88845489cdddc54c289b.tar.gz
helper append_interval(String*)
Diffstat (limited to 'sql/sql_time.h')
-rw-r--r--sql/sql_time.h4
1 files changed, 3 insertions, 1 deletions
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.