diff --git a/ChangeLog b/ChangeLog index 5247ba5ad..750c708ee 100755 --- a/ChangeLog +++ b/ChangeLog @@ -8,6 +8,8 @@ $Source$ 2002-11-07 Alexander M. Turek * libraries/config_import.lib.php3: Fixed a small inconsistance. * config.inc.php3: Added a note about bug #634931. + * tbl_properties_operations.php3: Fixed bug #628581 (Check referential + integrity and NULL foreign key). 2002-11-06 Alexander M. Turek * translators.html, lang/*.inc.php3: Fixed some typos. diff --git a/tbl_properties_operations.php3 b/tbl_properties_operations.php3 index a03d23af9..b2d206d40 100755 --- a/tbl_properties_operations.php3 +++ b/tbl_properties_operations.php3 @@ -318,7 +318,9 @@ if ($cfgRelation['relwork']) { . ' = ' . PMA_backquote($arr['foreign_table']) . '.' . PMA_backquote($arr['foreign_field']) . ' WHERE ' . PMA_backquote($arr['foreign_table']) . '.' . PMA_backquote($arr['foreign_field']) - . ' IS NULL') + . ' IS NULL AND ' + . PMA_backquote($table) . '.' . PMA_backquote($master) + . ' IS NOT NULL') . '">' . $master . ' -> ' . $arr['foreign_table'] . '.' . $arr['foreign_field'] . '
' . "\n"; } // end while