From 141e44f6a7a8ee8f71530fc0ac554ceaee7868fd Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Sat, 30 Oct 2004 00:52:55 +0000 Subject: [PATCH] bug #1050424 --- ChangeLog | 1 + tbl_relation.php | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 1e4cff66f..c1ea812df 100755 --- a/ChangeLog +++ b/ChangeLog @@ -11,6 +11,7 @@ $Source$ use PMA_convert_using() in case of non-latin1 user table, and fix bug #1054467 (in case of BINARY User field) * header.inc.php: bug #1053310, undefined index under OmniSecure server + * tbl_relation.php: bug #1050424, not positionned on current db 2004-10-28 Alexander M. Turek * user_password.php, lang/*.inc.php: Allow usage of old password hashing diff --git a/tbl_relation.php b/tbl_relation.php index 66ec6b52e..0d5c2a710 100644 --- a/tbl_relation.php +++ b/tbl_relation.php @@ -73,6 +73,10 @@ $cfgRelation = PMA_getRelationsParam(); * Updates */ +// ensure we are positionned to our current db (since the previous reading +// of relations makes pmadb the current one, maybe depending on the MySQL version) +PMA_DBI_select_db($db); + if ($cfgRelation['relwork']) { $existrel = PMA_getForeigners($db, $table, '', 'internal'); }