mirror of
https://github.com/MariaDB/server.git
synced 2025-08-01 03:47:19 +03:00
Extends 64 bit windows to support timestamps up to year 2106.
MDEV-32188 make TIMESTAMP use whole 32-bit unsigned range This is done by changing my_time_t from long to unsigned long. The effect of this is that on windows compling old clients may get warnings of if they compare my_time_t with as signed variable. Other things - Removed my_time_t from include/*.pp files as it is different on windows and linux. - Changed do_abi_check.cmake to first print abi_check and then the conflicting file (this makes it easier to find the cause of the error).
This commit is contained in:
@ -784,7 +784,7 @@ void Timestamp::round_or_set_max(uint dec, int *warn)
|
||||
if (add_nanoseconds_usec(msec_round_add[dec]) &&
|
||||
(ulonglong) tv_sec++ >= TIMESTAMP_MAX_VALUE)
|
||||
{
|
||||
tv_sec= TIMESTAMP_MAX_VALUE;
|
||||
tv_sec= (time_t) TIMESTAMP_MAX_VALUE;
|
||||
tv_usec= TIME_MAX_SECOND_PART;
|
||||
*warn|= MYSQL_TIME_WARN_OUT_OF_RANGE;
|
||||
}
|
||||
|
Reference in New Issue
Block a user