Bug #25066 | Index type is always BTREE, can't be changed | ||
---|---|---|---|
Submitted: | 14 Dec 2006 11:43 | Modified: | 18 Dec 2006 14:23 |
Reporter: | Kari Söderholm | Email Updates: | |
Status: | Closed | Impact on me: | |
Category: | MySQL Administrator | Severity: | S2 (Serious) |
Version: | 1.2.6 | OS: | Windows (Windows XP) |
Assigned to: | Mike Lischke | CPU Architecture: | Any |
Tags: | INDEX |
[14 Dec 2006 11:43]
Kari Söderholm
[14 Dec 2006 13:47]
Mike Lischke
Kari, please read the chapter about index types: http://dev.mysql.com/doc/refman/5.0/en/create-index.html. Only MEMORY tables can use HASH. However, there is a related problem here: you cannot change the index type for the primary key. The code to determine the ALTER TABLE statement is missing the check for a changed index type.
[18 Dec 2006 14:23]
Mike Lischke
Thank you for your bug report. This issue has been committed to our source repository of that product and will be incorporated into the next release. If necessary, you can access the source repository and build the latest available version, including the bug fix. More information about accessing the source trees is available at http://dev.mysql.com/doc/en/installing-source.html