mirror of
https://github.com/MariaDB/server.git
synced 2026-04-28 11:15:33 +02: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:
parent
1ea79d1774
commit
a37eb6d013
3 changed files with 23 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue