1
0
mirror of https://github.com/MariaDB/server.git synced 2025-07-29 05:21:33 +03:00

unify "partitioning cannot do X" error messages

This commit is contained in:
Nikita Malyavin
2020-01-10 23:17:38 +10:00
committed by Sergei Golubchik
parent 3bef848226
commit e6af62189e
15 changed files with 23 additions and 23 deletions

View File

@ -4814,7 +4814,7 @@ uint prep_alter_part_table(THD *thd, TABLE *table, Alter_info *alter_info,
if (table->part_info && (alter_info->flags & (ALTER_ADD_FOREIGN_KEY |
ALTER_DROP_FOREIGN_KEY)))
{
my_error(ER_FOREIGN_KEY_ON_PARTITIONED, MYF(0));
my_error(ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING, MYF(0), "FOREIGN KEY");
DBUG_RETURN(TRUE);
}
/* Remove partitioning on a not partitioned table is not possible */