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

IB: (0.4) foreign keys for versioned tables (#58)

This commit is contained in:
kevgs
2016-11-01 19:51:44 +03:00
committed by Aleksey Midenkov
parent 012e3e7e4e
commit a22cbc453f
8 changed files with 297 additions and 56 deletions

View File

@ -4621,20 +4621,6 @@ handler *mysql_create_frm_image(THD *thd,
if (create_info->versioned())
{
// FIXME: This test doesn't detect foreign key relationship on the side of
// parent table and System Time support will not work correctly for such
// table either. But this cannot be implemented without changes to innodb
// that are postponed for later time.
List_iterator_fast<Key> key_iterator(alter_info->key_list);
Key *key;
while ((key= key_iterator++))
{
if (key->type == Key::FOREIGN_KEY)
{
my_error(ER_FOREIGN_KEY_ON_SYSTEM_VERSIONED, MYF(0));
goto err;
}
}
if(vers_prepare_keys(thd, create_info, alter_info, key_info,
*key_count))
goto err;