mirror of
https://github.com/MariaDB/server.git
synced 2025-08-07 00:04:31 +03:00
Bug #18483 Cannot create table with FK constraint
- remove error set for auto partitioned tables
This commit is contained in:
@@ -3106,7 +3106,8 @@ bool mysql_create_table_internal(THD *thd,
|
||||
}
|
||||
while ((key= key_iterator++))
|
||||
{
|
||||
if (key->type == Key::FOREIGN_KEY)
|
||||
if (key->type == Key::FOREIGN_KEY &&
|
||||
!part_info->is_auto_partitioned)
|
||||
{
|
||||
my_error(ER_CANNOT_ADD_FOREIGN, MYF(0));
|
||||
goto err;
|
||||
|
Reference in New Issue
Block a user