Details
Description
Lets have the following table:
CREATE TABLE `example` ( |
`example_id` int(11) NOT NULL, |
`index_btree` int(11) NOT NULL, |
`index_hash` int(11) NOT NULL |
) ENGINE=InnoDB DEFAULT CHARSET=utf8mb3; |
|
ALTER TABLE `example` |
ADD PRIMARY KEY (`example_id`), |
ADD KEY `example_hash` (`index_hash`) USING HASH, |
ADD KEY `example_btree` (`index_btree`) USING BTREE; |
|
ALTER TABLE `example` |
MODIFY `example_id` int(11) NOT NULL AUTO_INCREMENT; |
Now we have a look at the index by
SHOW INDEX FROM example; |
And see that the Index_type is BTREE for Index example_hash.
As a result of this PHPMyadmin also shows the wrong type. In a created export the index_type is correctly set to HASH...
Attachments
Issue Links
- relates to
-
MDEV-13445 Hash-Index Type for InnoDB
- Open