From e8bec3ac5eeecba6220eb25c4c7c709179622c78 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lo=C3=AFc=20Chapeaux?= Date: Sat, 27 Apr 2002 15:56:10 +0000 Subject: [PATCH] New fields names in the relation table --- ChangeLog | 2 ++ tbl_properties.php3 | 4 ++-- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index 916351e35..da187abc7 100755 --- a/ChangeLog +++ b/ChangeLog @@ -21,6 +21,8 @@ $Source$ * scripts/create-release.sh: improved so a CVS branch tag may be used. * lang/croatian-*; libraries/select_lang.lib.php3: new Croatian translations thanks to Sime Essert . + * tbl_properties.php3, lines 1238-1240: fix new fields names in the + relation table. * Compressed ChangeLog till the 2.2.6 release. 2002-04-26 Loïc Chapeaux diff --git a/tbl_properties.php3 b/tbl_properties.php3 index 2fa5a8369..cd8f0d057 100755 --- a/tbl_properties.php3 +++ b/tbl_properties.php3 @@ -1235,9 +1235,9 @@ else if (PMA_MYSQL_INT_VERSION >= 32306 // Referential integrity check if (!empty($cfg['Server']['relation'])) { - $local_query = 'SELECT src_column, dest_table, dest_column' + $local_query = 'SELECT master_field, foreign_table, foreign_field' . ' FROM ' . $cfg['Server']['relation'] - . ' WHERE src_table =\'' . $table . '\';'; + . ' WHERE master_table = \'' . $table . '\';'; // we need this 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()