tbl_select and innodb

This commit is contained in:
Marc Delisle
2003-06-19 19:57:14 +00:00
parent fa496903e1
commit 5e348cc25a
2 changed files with 5 additions and 1 deletions

View File

@@ -11,6 +11,7 @@ $Source$
* libraries/display_tbl.lib.php3: use PMA_getForeigners()
* libraries/relation.lib.php3: now PMA_getForeigners() gets also
foreign keys defined in innnodb
* tbl_select.php3: use PMA_getForeigners() also for innodb
2003-06-17 Michal Cihar <nijel@users.sourceforge.net>
* config.inc.php3: Fixed typo (s/'PMA_pdf_page'/'PMA_pdf_pages'/).

View File

@@ -65,7 +65,10 @@ if (!isset($param) || $param[0] == '') {
// <markus@noga.de>
// retrieve keys into foreign fields, if any
$cfgRelation = PMA_getRelationsParam();
$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
// check also foreigners even if relwork is FALSE (to get
// foreign keys from innodb)
//$foreigners = ($cfgRelation['relwork'] ? PMA_getForeigners($db, $table) : FALSE);
$foreigners = PMA_getForeigners($db, $table);
?>
<form method="post" action="tbl_select.php3">
<?php echo PMA_generate_common_hidden_inputs($db, $table); ?>