From 287eac497899bf7a24634f5c9b9bd5dfba89a1bb Mon Sep 17 00:00:00 2001 From: Marc Delisle Date: Thu, 25 Dec 2003 20:50:54 +0000 Subject: [PATCH] qbe error when generating joins --- db_details_qbe.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/db_details_qbe.php b/db_details_qbe.php index e75ab7198..463e3f7f4 100644 --- a/db_details_qbe.php +++ b/db_details_qbe.php @@ -776,6 +776,11 @@ if (isset($Field) && count($Field) > 0) { $master = key($tab_wher); } else { // Now let's find out which of the tables has an index + // ( When the control user is the same as the normal user + // because he is using one of his databases as pmadb, + // the last db selected is not always the one where we need to work) + PMA_mysql_select_db($db); + foreach($tab_all AS $tab) { $ind_qry = 'SHOW INDEX FROM ' . PMA_backquote($tab); $ind_rs = PMA_mysql_query($ind_qry);