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:
committed by
Sergei Golubchik
parent
3bef848226
commit
e6af62189e
@ -4724,7 +4724,7 @@ handler *mysql_create_frm_image(THD *thd, const LEX_CSTRING &db,
|
||||
|
||||
if (create_info->tmp_table())
|
||||
{
|
||||
my_error(ER_PARTITION_NO_TEMPORARY, MYF(0));
|
||||
my_error(ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING, MYF(0), "CREATE TEMPORARY TABLE");
|
||||
goto err;
|
||||
}
|
||||
if ((part_engine_type == partition_hton) &&
|
||||
@ -4850,7 +4850,8 @@ handler *mysql_create_frm_image(THD *thd, const LEX_CSTRING &db,
|
||||
{
|
||||
if (key->type == Key::FOREIGN_KEY)
|
||||
{
|
||||
my_error(ER_FOREIGN_KEY_ON_PARTITIONED, MYF(0));
|
||||
my_error(ER_FEATURE_NOT_SUPPORTED_WITH_PARTITIONING, MYF(0),
|
||||
"FOREIGN KEY");
|
||||
goto err;
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user