Browse Source
MDEV-18016: Assertion failure on ALTER TABLE after foreign_key_checks=0
MDEV-18016: Assertion failure on ALTER TABLE after foreign_key_checks=0
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.10.0
4 changed files with 68 additions and 68 deletions
-
12mysql-test/suite/innodb/r/foreign_key.result
-
8mysql-test/suite/innodb/t/foreign_key.test
-
58storage/innobase/handler/handler0alter.cc
-
58storage/xtradb/handler/handler0alter.cc
Write
Preview
Loading…
Cancel
Save
Reference in new issue