1
0
mirror of https://github.com/MariaDB/server.git synced 2025-08-07 00:04:31 +03:00

Disable VECTOR indexes with partitioned tables

This commit is contained in:
Sergey Vojtovich
2024-07-03 19:52:53 +04:00
committed by Sergei Golubchik
parent 7c16bba71d
commit 4aa1968b89
3 changed files with 49 additions and 0 deletions

View File

@@ -3243,6 +3243,11 @@ mysql_prepare_create_table_finalize(THD *thd, HA_CREATE_INFO *create_info,
key_number--; // Skip this key
continue;
case Key::VECTOR:
if (IF_PARTITIONING(thd->work_part_info, false))
{
my_error(ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING, MYF(0), "VECTOR");
DBUG_RETURN(TRUE);
}
if (key->key_create_info.algorithm == HA_KEY_ALG_UNDEF)
key->key_create_info.algorithm= HA_KEY_ALG_VECTOR;
break;