• Thirunarayanan Balathandayuthapani's avatar
    MDEV-32638 MariaDB crashes with foreign_key_checks=0 when changing a column... · b4de67da
    Thirunarayanan Balathandayuthapani authored
    MDEV-32638 MariaDB crashes with foreign_key_checks=0 when changing a column and adding a foreign key at the same time
    
    Problem:
    =======
     - InnoDB fails to find the foreign key index for the newly
    added foreign key relation. This is caused by commit
    5f09b53b (MDEV-31086).
    
    FIX:
    ===
    In check_col_is_in_fk_indexes(), while iterating through
    the newly added foreign key relationship, InnoDB should
    consider that foreign key relation may not have foreign index
    when foreign key check is disabled.
    b4de67da
fk_col_alter.test 6.5 KB