Details
-
Bug
-
Status: Closed (View Workflow)
-
Major
-
Resolution: Fixed
-
10.3(EOL), 10.4(EOL)
-
None
Description
SET global system_versioning_asof= '2011-00-11 11:11:11.111111'; |
SELECT @@global.system_versioning_asof; |
+---------------------------------+
|
| @@global.system_versioning_asof |
|
+---------------------------------+
|
| 2011-00-11 11:11:11.111111 |
|
+---------------------------------+
|
It probably should reject values with zeros, or be even more strict: accept only values in the valid TIMESTAMP range.
Attachments
Issue Links
- relates to
-
MDEV-17448 Support DATETIME(6) for ROW START, ROW END
-
- Open
-
Alexey,
I think that this patch is incomplete:
https://github.com/MariaDB/server/pull/1049/commits/6d95db7ee7e4fd4283714ce21c1464b70564e50c
It's not enough to add a test for TIME_NO_ZERO_IN_DATE|TIME_NO_ZERO_DATE.
It should probably also test that the value is in the supported TIMESTAMP range:
from '1970-01-01 00:00:01' (UTC)
to '2038-01-19 05:14:07' (UTC).
You can check it using either TIME_to_timestamp() or using this Timestamp constructor:
Timestamp(THD *thd, const MYSQL_TIME *ltime, uint *error_code);