From 53a892fcfd5aa1551f0284767186632b9560d838 Mon Sep 17 00:00:00 2001 From: Aleksey Midenkov Date: Fri, 30 Sep 2016 13:15:08 +0000 Subject: IB: 0.2 part IV * BEGIN_TS(), COMMIT_TS() SQL functions; * VTQ instead of packed stores secs + usecs like my_timestamp_to_binary() does; * versioned SELECT to IB is translated with COMMIT_TS(); * SQL fixes: - FOR_SYSTEM_TIME_UNSPECIFIED condition compares to TIMESTAMP_MAX_VALUE; - segfault fix #36: multiple execute of prepared stmt; - different tables to same stored procedure fix (#39) * Fixes of previous parts: ON DUPLICATE KEY, other misc fixes. --- sql/sql_time.h | 9 --------- 1 file changed, 9 deletions(-) (limited to 'sql/sql_time.h') diff --git a/sql/sql_time.h b/sql/sql_time.h index fd0c0273dcf..e6246d91fa5 100644 --- a/sql/sql_time.h +++ b/sql/sql_time.h @@ -171,15 +171,6 @@ bool calc_time_diff(const MYSQL_TIME *l_time1, const MYSQL_TIME *l_time2, int lsign, MYSQL_TIME *l_time3, ulonglong fuzzydate); int my_time_compare(const MYSQL_TIME *a, const MYSQL_TIME *b); void localtime_to_TIME(MYSQL_TIME *to, struct tm *from); -void unix_time_to_TIME(MYSQL_TIME *to, time_t secs, suseconds_t usecs); - -inline -longlong unix_time_to_packed(time_t secs, suseconds_t usecs) -{ - MYSQL_TIME mysql_time; - unix_time_to_TIME(&mysql_time, secs, usecs); - return pack_time(&mysql_time); -} void calc_time_from_sec(MYSQL_TIME *to, long seconds, long microseconds); uint calc_week(MYSQL_TIME *l_time, uint week_behaviour, uint *year); -- cgit v1.2.1