Bug #73008 | "check table .. for upgrade" fails to report old datetime format. | ||
---|---|---|---|
Submitted: | 15 Jun 2014 7:51 | Modified: | 25 Feb 2015 18:55 |
Reporter: | Shane Bester (Platinum Quality Contributor) | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: DDL | Severity: | S3 (Non-critical) |
Version: | 5.6.20 | OS: | Any |
Assigned to: | CPU Architecture: | Any |
[15 Jun 2014 7:51]
Shane Bester
[25 Feb 2015 18:55]
Paul DuBois
Noted in 5.7.7, 5.8.0 changelogs. CHECK TABLE ... FOR UPGRADE did not report temporal columns that use the old datetime format (from before MySQL 5.6.4). Consequently, mysql_upgrade did not know to rebuild tables that contain such columns, and subsequent ALTER TABLE statements were unable to perform fast alterations to the extent possible had the tables been repaired.
[27 Feb 2015 16:19]
Paul DuBois
Revised changelog entry: CHECK TABLE ... FOR UPGRADE did not report temporal columns that use the old datetime format (from before MySQL 5.6.4). Consequently, mysql_upgrade did not know to issue REPAIR TABLE statements to rebuild tables that contain such columns, and subsequent ALTER TABLE statements were unable to perform fast alterations to the extent possible had the tables been repaired. Now, if the avoid_temporal_upgrade system variable is disabled, CHECK TABLE reports old temporal columns and REPAIR TABLE upgrades tables from old temporal format to the new format.