• Marko Mäkelä's avatar
    MDEV-18016: Assertion failure on ALTER TABLE after foreign_key_checks=0 · 1522ee29
    Marko Mäkelä authored
    ha_innobase::commit_inplace_alter_table(): Do not crash if
    innobase_update_foreign_cache() returns an error. It can return
    an error on ALTER TABLE if an inconsistent FOREIGN KEY constraint
    was created earlier when SET foreign_key_checks=0 was in effect.
    Instead, report a warning to the client that constraints cannot
    be loaded.
    1522ee29
foreign_key.test 3.31 KB