getForeigners returns constraints

This commit is contained in:
Marc Delisle
2003-08-23 18:57:27 +00:00
parent e948ec2ac2
commit 4580cf6768
2 changed files with 3 additions and 0 deletions

View File

@@ -13,6 +13,7 @@ $Source$
* lang/swedish: Updated, thanks to Bj<42>rn T. Hallberg (bth).
* lang/greek: update, thanks to Kyriakos Xagoraris (theremon)
* libraries/sqlparser.lib.php3: extract the CONSTRAINTs for FOREIGN KEYs
* libraries/relation.lib.php3: getForeigners() returns also the constraint
2003-08-21 Marc Delisle <lem9@users.sourceforge.net>
* tbl_relation.php3: improve variables, remove some code

View File

@@ -322,6 +322,8 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
// and in 'innodb', we won't get it twice if $source='both'
// because we use $field as key
$foreign[$field]['constraint'] = $one_key['constraint'];
if (isset($one_key['ref_db_name'])) {
$foreign[$field]['foreign_db'] = $one_key['ref_db_name'];
} else {