Database was being set at wrong place

This commit is contained in:
Atul Pratap Singh 2013-10-15 00:08:50 +05:30
parent 00599cb37e
commit ec6f20fac9
2 changed files with 1 additions and 2 deletions

View File

@ -1322,7 +1322,6 @@ function PMA_hasCurrentDbChanged($db)
if ($db !== $current_db) {
$reload = 1;
}
$GLOBALS['dbi']->selectDb($db);
}
return $reload;

View File

@ -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,