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:
@@ -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 */
|
||||
|
Reference in New Issue
Block a user