summaryrefslogtreecommitdiff
path: root/innobase
diff options
context:
space:
mode:
authorunknown <marko@hundin.mysql.fi>2005-05-26 15:57:24 +0300
committerunknown <marko@hundin.mysql.fi>2005-05-26 15:57:24 +0300
commit91427f2434ffc83e80c31a7a6819f10eadb42507 (patch)
tree2c7e6c98644c3bda2da82fc23a265d13e1f0a6eb /innobase
parentaa3a934b9d2e7585d9e40a4f56a060bad718baf5 (diff)
parent9181c17c143063bd2714c6524772f5b10d412844 (diff)
downloadmariadb-git-91427f2434ffc83e80c31a7a6819f10eadb42507.tar.gz
Merge hundin.mysql.fi:/home/marko/k/mysql-4.0
into hundin.mysql.fi:/home/marko/mysql-4.1 innobase/row/row0mysql.c: Auto merged
Diffstat (limited to 'innobase')
-rw-r--r--innobase/row/row0mysql.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/innobase/row/row0mysql.c b/innobase/row/row0mysql.c
index 280c306cce4..7ce5c766e06 100644
--- a/innobase/row/row0mysql.c
+++ b/innobase/row/row0mysql.c
@@ -2575,6 +2575,7 @@ row_drop_table_for_mysql(
foreign = UT_LIST_GET_FIRST(table->referenced_list);
while (foreign && foreign->foreign_table == table) {
+ check_next_foreign:
foreign = UT_LIST_GET_NEXT(referenced_list, foreign);
}
@@ -2603,6 +2604,10 @@ row_drop_table_for_mysql(
goto funct_exit;
}
+ if (foreign && trx->check_foreigns) {
+ goto check_next_foreign;
+ }
+
if (table->n_mysql_handles_opened > 0) {
ibool added;