getForeigners returns constraints
This commit is contained in:
@@ -13,6 +13,7 @@ $Source$
|
|||||||
* lang/swedish: Updated, thanks to Bj<42>rn T. Hallberg (bth).
|
* lang/swedish: Updated, thanks to Bj<42>rn T. Hallberg (bth).
|
||||||
* lang/greek: update, thanks to Kyriakos Xagoraris (theremon)
|
* lang/greek: update, thanks to Kyriakos Xagoraris (theremon)
|
||||||
* libraries/sqlparser.lib.php3: extract the CONSTRAINTs for FOREIGN KEYs
|
* 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>
|
2003-08-21 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* tbl_relation.php3: improve variables, remove some code
|
* tbl_relation.php3: improve variables, remove some code
|
||||||
|
@@ -322,6 +322,8 @@ if (!defined('PMA_RELATION_LIB_INCLUDED')){
|
|||||||
// and in 'innodb', we won't get it twice if $source='both'
|
// and in 'innodb', we won't get it twice if $source='both'
|
||||||
// because we use $field as key
|
// because we use $field as key
|
||||||
|
|
||||||
|
$foreign[$field]['constraint'] = $one_key['constraint'];
|
||||||
|
|
||||||
if (isset($one_key['ref_db_name'])) {
|
if (isset($one_key['ref_db_name'])) {
|
||||||
$foreign[$field]['foreign_db'] = $one_key['ref_db_name'];
|
$foreign[$field]['foreign_db'] = $one_key['ref_db_name'];
|
||||||
} else {
|
} else {
|
||||||
|
Reference in New Issue
Block a user