Details
-
Type:
Bug
-
Status: Closed
-
Priority:
Minor
-
Resolution: Incomplete
-
Affects Version/s: 5.5.31
-
Fix Version/s: None
-
Component/s: None
-
Labels:None
-
Environment:CentOS 6.4 x64
Description
When trying to input an ISO8601 string as a datetime value, the SQL query fails.
UPDATE `users` SET `activity` = '2013-06-07T18:15:51+0800' WHERE id = '1'; Invalid datetime format: 1292 Incorrect datetime value: '2013-06-07T18:15:51+0800' for column 'activity' at row 1
This works in MySQL 5.5 (tried with 5.5.29).
Gliffy Diagrams
Attachments
Activity
- All
- Comments
- Work Log
- History
- Activity
- Transitions
I cannot repeat it. Both in MySQL and in MariaDB I get a warning, and the value is updated.
In MySQL the warning is "Out of range value for column 'activity' at row 1" in MariaDB the warnings is "Data truncated for column 'activity' at row 1". Our warning is correct, there's nothing "out of range" here, instead the string-to-time conversion routine does not understand time zones (neither in MySQL nor in MariaDB), so the resulting datetime value comes from a truncated string.
Could you provide a complete repeatable test case that shows the incorrect behavior?