From ec6f20fac9fbb80e175e2b46699bcba25ac5f037 Mon Sep 17 00:00:00 2001 From: Atul Pratap Singh Date: Tue, 15 Oct 2013 00:08:50 +0530 Subject: [PATCH] Database was being set at wrong place --- libraries/sql.lib.php | 1 - sql.php | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/libraries/sql.lib.php b/libraries/sql.lib.php index 0dc7b80728..0add3b5067 100644 --- a/libraries/sql.lib.php +++ b/libraries/sql.lib.php @@ -1322,7 +1322,6 @@ function PMA_hasCurrentDbChanged($db) if ($db !== $current_db) { $reload = 1; } - $GLOBALS['dbi']->selectDb($db); } return $reload; diff --git a/sql.php b/sql.php index 6d992a3f15..73b8ff183f 100644 --- a/sql.php +++ b/sql.php @@ -173,7 +173,7 @@ if ($goto == 'sql.php') { ); } // end if - +$GLOBALS['dbi']->selectDb($db); PMA_executeQueryAndSendQueryResponse( $analyzed_sql_results, $is_gotofile, $db, $table, isset($find_real_end) ? $find_real_end : null,