mirror of
https://github.com/MariaDB/server.git
synced 2025-07-30 16:24:05 +03:00
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.
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user