From fac3642cc850d86dd927dec456aea19bae706918 Mon Sep 17 00:00:00 2001 From: unknown Date: Fri, 2 Apr 2004 16:25:48 +0300 Subject: InnoDB: ignore intra-database foreign key references between tables 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 --- innobase/include/row0mysql.h | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'innobase/include/row0mysql.h') diff --git a/innobase/include/row0mysql.h b/innobase/include/row0mysql.h index 940b4c61b2f..f28e1b6f048 100644 --- a/innobase/include/row0mysql.h +++ b/innobase/include/row0mysql.h @@ -329,7 +329,8 @@ row_drop_table_for_mysql( /*=====================*/ /* out: error code or DB_SUCCESS */ char* name, /* in: table name */ - trx_t* trx); /* in: transaction handle */ + trx_t* trx, /* in: transaction handle */ + ibool drop_db);/* in: TRUE=dropping whole database */ /************************************************************************* Drops a database for MySQL. */ -- cgit v1.2.1