Bug #76523 | unrepeatable example in the doc on leap second support | ||
---|---|---|---|
Submitted: | 30 Mar 2015 1:26 | Modified: | 30 Mar 2015 5:38 |
Reporter: | Peiran Song | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: General | Severity: | S3 (Non-critical) |
Version: | OS: | Any | |
Assigned to: | CPU Architecture: | Any |
[30 Mar 2015 1:26]
Peiran Song
[30 Mar 2015 5:38]
MySQL Verification Team
Hello Peiran Song, Thank you for the report. I observed similar results(as shown in report) from 5.0.96, 5.1.73, 5.5.44, 5.6.25 and 5.7.8. Thanks, Umesh
[31 Mar 2015 13:23]
Jon Stephens
mysql> select unix_timestamp("2008-12-31 23:59:59"); +---------------------------------------+ | unix_timestamp("2008-12-31 23:59:59") | +---------------------------------------+ | 1230767999 | +---------------------------------------+ 1 row in set (0.00 sec) mysql> select unix_timestamp("2008-12-31 23:59:60"); +---------------------------------------+ | unix_timestamp("2008-12-31 23:59:60") | +---------------------------------------+ | 0.000000 | +---------------------------------------+ 1 row in set, 1 warning (0.00 sec) mysql> show warnings; +---------+------+-------------------------------------------------+ | Level | Code | Message | +---------+------+-------------------------------------------------+ | Warning | 1292 | Incorrect datetime value: '2008-12-31 23:59:60' | +---------+------+-------------------------------------------------+ 1 row in set (0.00 sec) mysql> select unix_timestamp("2009-01-01 00:00:00"); +---------------------------------------+ | unix_timestamp("2009-01-01 00:00:00") | +---------------------------------------+ | 1230768000 | +---------------------------------------+ 1 row in set (0.00 sec) We don't document misbehaviour. Misbehaviour is a software bug, and needs to be fixed.