• Marko Mäkelä's avatar
    MDEV-25691 fixup: Correctly drop orphan foreign keys · 27141581
    Marko Mäkelä authored
    innodb_drop_database_fk(): Use the correct length when comparing.
    Fix a debug assertion in previously unreachable code.
    This error was caught by MSAN.
    
    innodb_drop_database(): Correct the SQL for traversing SYS_FOREIGN.
    The incorrect code would cause orphan FOREIGN KEY entries to be
    left behind in the test innodb.alter_foreign_crash.
    27141581
ha_innodb.cc 600 KB