mirror of
https://github.com/MariaDB/server.git
synced 2025-08-08 11:22:35 +03:00
MDEV-35021 Behavior for RTREE indexes changed, assertion fails
disallow USING RTREE for not SPATIAL index
This commit is contained in:
@@ -3347,7 +3347,7 @@ mysql_prepare_create_table_finalize(THD *thd, HA_CREATE_INFO *create_info,
|
||||
my_error(ER_TABLE_CANT_HANDLE_SPKEYS, MYF(0), file->table_type());
|
||||
DBUG_RETURN(TRUE);
|
||||
}
|
||||
if (key_info->user_defined_key_parts != 1)
|
||||
if (key->type != Key::SPATIAL || key_info->user_defined_key_parts != 1)
|
||||
{
|
||||
my_error(ER_WRONG_ARGUMENTS, MYF(0), "RTREE INDEX");
|
||||
DBUG_RETURN(TRUE);
|
||||
|
Reference in New Issue
Block a user