referential integrity and InnoDB

This commit is contained in:
Marc Delisle
2003-07-20 22:25:28 +00:00
parent 3866ff5ae7
commit 273df264f4
2 changed files with 11 additions and 1 deletions

View File

@@ -302,7 +302,12 @@ else if (PMA_MYSQL_INT_VERSION >= 32306
<?php
// Referential integrity check
if ($cfgRelation['relwork']) {
// The Referential integrity check was intended for the non-InnoDB
// tables for which the relations are defined in pmadb
// so I assume that if the current table is InnoDB, I don't display
// this choice (InnoDB maintains integrity by itself)
if ($cfgRelation['relwork'] && $tbl_type != "INNODB") {
// we need this PMA_mysql_select_db if the user has access to more than one db
// and $db is not the last of the list, because PMA_availableDatabases()