Details
-
Bug
-
Status: Needs Feedback (View Workflow)
-
Major
-
Resolution: Unresolved
-
12.1.1
-
None
-
None
Description
There seems to be a bug in the code where support for 64bit time is not working on 32bit systems.
In include/my_time.h:62 there is the IS_TIME_T_VALID_FOR_TIMESTAMP macro defined. If this fails the server will fail with
sql_print_error("This server doesn't support dates later than 2038"); |
in sql/mysqld.cc.
However this macro seems to be the wrong way around,
if SIZEOF_TIME_T > 4 || defined(TIME_T_UNSIGNED) |
is the condition for 64bit time support but in the truthy case defines a check for timestamps <INT32_MAX. It should be the other way around.
Attachments
Issue Links
- is caused by
-
MDEV-32188 make TIMESTAMP use whole 32-bit unsigned range
-
- Closed
-