Bug #21106 | Compressed MyISAM table is read only and thus truncate should not be possible | ||
---|---|---|---|
Submitted: | 18 Jul 2006 8:08 | Modified: | 19 Jul 2006 10:12 |
Reporter: | Oli Sennhauser | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Server: Documentation | Severity: | S2 (Serious) |
Version: | 5.0.22 | OS: | Any (any) |
Assigned to: | MC Brown | CPU Architecture: | Any |
Tags: | compressed, myisam, read only, table, truncate |
[18 Jul 2006 8:08]
Oli Sennhauser
[18 Jul 2006 12:33]
Valeriy Kravchuk
Verfified just as described with 50.25-BK on Linux. I think, current behaviour is correct (TRUNCATE is a kind of DDL statement, like DROP), but this specific case should be properly documented (as a note at http://dev.mysql.com/doc/refman/5.0/en/compressed-format.html, I think).
[19 Jul 2006 10:12]
MC Brown
I've added a note to the page: While a compressed table is read-only, and you cannot therefore update or add rows in the table, DDL (Data Definition Language) operations are still valid. For example, you may still use <literal>DROP</literal> to drop the table, and <literal>TRUNCATE</literal> to empty the table.