mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
merge with 5.1-micro
This commit is contained in:
@@ -85,9 +85,7 @@ typedef long my_time_t;
|
||||
#define TIME_MAX_SECOND_PART 999999
|
||||
#define TIME_SECOND_PART_FACTOR (TIME_MAX_SECOND_PART+1)
|
||||
#define TIME_SECOND_PART_DIGITS 6
|
||||
#define TIME_MAX_VALUE (TIME_MAX_HOUR*10000 + TIME_MAX_MINUTE*100 + \
|
||||
TIME_MAX_SECOND + \
|
||||
TIME_MAX_SECOND_PART/(double)TIME_SECOND_PART_FACTOR)
|
||||
#define TIME_MAX_VALUE (TIME_MAX_HOUR*10000 + TIME_MAX_MINUTE*100 + TIME_MAX_SECOND)
|
||||
#define TIME_MAX_VALUE_SECONDS (TIME_MAX_HOUR * 3600L + \
|
||||
TIME_MAX_MINUTE * 60L + TIME_MAX_SECOND)
|
||||
|
||||
@@ -99,11 +97,10 @@ str_to_time(const char *str, uint length, MYSQL_TIME *l_time,
|
||||
enum enum_mysql_timestamp_type
|
||||
str_to_datetime(const char *str, uint length, MYSQL_TIME *l_time,
|
||||
ulong flags, int *was_cut);
|
||||
longlong number_to_datetime(longlong nr, MYSQL_TIME *time_res,
|
||||
longlong number_to_datetime(longlong nr, ulong sec_part, MYSQL_TIME *time_res,
|
||||
uint flags, int *was_cut);
|
||||
int number_to_time(double nr, MYSQL_TIME *ltime, int *was_cut);
|
||||
my_bool double_to_datetime(double nr, MYSQL_TIME *time_res,
|
||||
uint flags);
|
||||
int number_to_time(my_bool neg, longlong nr, ulong sec_part,
|
||||
MYSQL_TIME *ltime, int *was_cut);
|
||||
ulonglong TIME_to_ulonglong_datetime(const MYSQL_TIME *);
|
||||
ulonglong TIME_to_ulonglong_date(const MYSQL_TIME *);
|
||||
ulonglong TIME_to_ulonglong_time(const MYSQL_TIME *);
|
||||
@@ -146,8 +143,7 @@ static inline my_bool validate_timestamp_range(const MYSQL_TIME *t)
|
||||
}
|
||||
|
||||
my_time_t
|
||||
my_system_gmt_sec(const MYSQL_TIME *t, long *my_timezone,
|
||||
my_bool *in_dst_time_gap);
|
||||
my_system_gmt_sec(const MYSQL_TIME *t, long *my_timezone, uint *error_code);
|
||||
|
||||
void set_zero_time(MYSQL_TIME *tm, enum enum_mysql_timestamp_type time_type);
|
||||
|
||||
|
Reference in New Issue
Block a user