1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-08 11:22:35 +03:00

MDEV-35792 Adding a regular index on a vector column leads to invalid table structure

don't create a prefix key for types that don't support prefix keys
This commit is contained in:
Sergei Golubchik
2025-02-03 19:33:59 +01:00
parent 1ea79d1774
commit a37eb6d013
3 changed files with 23 additions and 1 deletions

View File

@@ -3012,7 +3012,7 @@ my_bool init_key_part_spec(THD *thd, Alter_info *alter_info,
}
if (key_part_length > max_key_part_length)
{
if (key.type == Key::MULTIPLE)
if (key.type == Key::MULTIPLE && type_handler->type_can_have_key_part())
{
key_part_length= max_key_part_length;
/* not a critical problem */