mirror of
https://github.com/MariaDB/server.git
synced 2026-04-20 07:15:33 +02:00
merge
This commit is contained in:
commit
3b65062d33
10 changed files with 81 additions and 15 deletions
|
|
@ -992,7 +992,7 @@ my_system_gmt_sec(const MYSQL_TIME *t_src, long *my_timezone,
|
|||
with unsigned time_t tmp+= shift*86400L might result in a number,
|
||||
larger then TIMESTAMP_MAX_VALUE, so another check will work.
|
||||
*/
|
||||
if ((tmp < TIMESTAMP_MIN_VALUE) || (tmp > TIMESTAMP_MAX_VALUE))
|
||||
if (!IS_TIME_T_VALID_FOR_TIMESTAMP(tmp))
|
||||
tmp= 0;
|
||||
|
||||
return (my_time_t) tmp;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue