• unknown's avatar
    InnoDB: ignore intra-database foreign key references between tables · fac3642c
    unknown authored
    when dropping database (Bug #3058)
    
    
    innobase/dict/dict0crea.c:
      Add a parameter to row_drop_table_for_mysql()
    innobase/dict/dict0dict.c:
      Make dict_tables_have_same_db() a global function
    innobase/include/dict0dict.h:
      Make dict_tables_have_same_db() a global function
    innobase/include/row0mysql.h:
      Add a parameter to row_drop_table_for_mysql()
    innobase/row/row0mysql.c:
      Add a parameter "drop_db" to row_drop_table_for_mysql()
      to skip foreign constraint checks on tables in same database
    innobase/trx/trx0roll.c:
      Add a parameter to row_drop_table_for_mysql()
    sql/ha_innodb.cc:
      Add a parameter "drop_db" to row_drop_table_for_mysql()
      innobase_drop_database(): allocate namebuf dynamically
    fac3642c
trx0roll.c 28.2 KB