Bug #66958 | impossible to create range partition on a Timestamp with miliseconds | ||
---|---|---|---|
Submitted: | 25 Sep 2012 15:24 | Modified: | 25 Sep 2012 22:00 |
Reporter: | Marc BERGER | Email Updates: | |
Status: | Not a Bug | Impact on me: | |
Category: | MySQL Server: Partitions | Severity: | S2 (Serious) |
Version: | Mysql server 5.6.6 | OS: | Linux (Xubuntu 12.04) |
Assigned to: | CPU Architecture: | Any |
[25 Sep 2012 15:24]
Marc BERGER
[25 Sep 2012 22:00]
MySQL Verification Team
Thank you for the bug report. Timestamp(N) isn't supported as documented: http://dev.mysql.com/doc/refman/5.5/en/upgrading-from-previous-series.html " Incompatible change: In very old versions of MySQL (prior to 4.1), the TIMESTAMP data type supported a display width, which was silently ignored beginning with MySQL 4.1. This is deprecated in MySQL 5.1, and removed altogether in MySQL 5.5. These changes in behavior can lead to two problem scenarios when trying to use TIMESTAMP(N) columns with a MySQL 5.5 or later server: When importing a dump file (for example, one created using mysqldump) created in a MySQL 5.0 or earlier server into a server from a newer release series, a CREATE TABLE or ALTER TABLE statement containing TIMESTAMP(N) causes the import to fail with a syntax error."
[2 Jul 2014 21:35]
Yury Chistiakov
experiencing the same issue with v.5.6.14 why status of this issue is "Not a Bug"? Please explain what for the link to the "upgrade to v.5.5" article is provided?
[3 Jul 2014 14:11]
Yury Chistiakov
IMHO the problem is caused by UNIX_TIMESTAMP function that changed its behavior and for some reason retruns now FRACTIONAL number of seconds. (Bug #72761) is anyone interested in UNIX_TIMESTAMP with mili/microseconds? This makes impossible creating partitional this way: PARTITION BY RANGE (UNIX_TIMESTAMP(col1)) where col1 is timestamp(N)