[MDEV-31615] SHOW INDEX returns Index_type BTREE for Index_type HASH Created: 2023-07-04 Updated: 2023-07-04 Resolved: 2023-07-04 |
|
| Status: | Closed |
| Project: | MariaDB Server |
| Component/s: | N/A |
| Affects Version/s: | 10.6.4, 10.6.10, 11.0.2 |
| Fix Version/s: | N/A |
| Type: | Bug | Priority: | Major |
| Reporter: | Sebastian Krüger | Assignee: | Unassigned |
| Resolution: | Not a Bug | Votes: | 0 |
| Labels: | btree, hash, index | ||
| Environment: |
tested on Ubuntu 22.04 and Ubuntu 20.04 |
||
| Attachments: |
|
||||||||
| Issue Links: |
|
||||||||
| Description |
|
Lets have the following table:
Now we have a look at the index by
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... |
| Comments |
| Comment by Alice Sherepa [ 2023-07-04 ] |
|
HASH index type is only supported for Memory engine (https://mariadb.com/kb/en/storage-engine-index-types/). InnoDB silently changes "HASH" into "BTree" (compatibility reasons, etc. ) |