summaryrefslogtreecommitdiff
path: root/sql/sql_time.h
diff options
context:
space:
mode:
authorAleksey Midenkov <midenok@gmail.com>2016-09-30 13:15:08 +0000
committerAleksey Midenkov <midenok@gmail.com>2017-05-05 20:36:10 +0300
commit53a892fcfd5aa1551f0284767186632b9560d838 (patch)
tree13d1a9b472517e40228b9c1263c1caea7eac832e /sql/sql_time.h
parentf13bf7178d9d924634762d0bb52d658e5d341451 (diff)
downloadmariadb-git-53a892fcfd5aa1551f0284767186632b9560d838.tar.gz
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.
Diffstat (limited to 'sql/sql_time.h')
-rw-r--r--sql/sql_time.h9
1 files changed, 0 insertions, 9 deletions
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);