Bug #3733 | ALTER TABLE doesn't restore cardinality values on MyISAM indexes | ||
---|---|---|---|
Submitted: | 12 May 2004 22:55 | Modified: | 3 Aug 2004 15:20 |
Reporter: | Timothy Smith | Email Updates: | |
Status: | Verified | Impact on me: | |
Category: | MySQL Server: MyISAM storage engine | Severity: | S4 (Feature request) |
Version: | 4.0 | OS: | Any (any) |
Assigned to: | CPU Architecture: | Any |
[12 May 2004 22:55]
Timothy Smith
[13 May 2004 9:46]
Sergei Golubchik
it will happen automatically when we'll do WL#1333
[3 Aug 2004 13:38]
Miguel Dias
If one does two alter tables in a row, with this bug, we actually loose rows from the original table. I think the priority could be revised or the documentation updated to reflect a warning.
[3 Aug 2004 15:20]
Sergei Golubchik
If you *loose rows* it's really a bug, please create a separate entry for this (as a confirmation, that it's indeed what happens) and try to provide a repeatable test case - we'll fix it. But it's not related to this entry, which talsk about "loosing cardinality values" - something you can observe with SHOW KEYS. Alter table is not expected to calculate cardinality, sometimes it does it as a by-product, sometimes it does not.