bug #1305830 wrong db choosen

This commit is contained in:
Sebastian Mendel
2005-09-28 17:03:17 +00:00
parent 6dbd2398c6
commit c8971b42e8
2 changed files with 2 additions and 3 deletions

View File

@@ -13,6 +13,7 @@ $Source$
* libraries/sql_query_form.lib.php: removed unneeded variable,
dont display bookmark selection fieldset if no bookmark exists
* libraries/session.inc.php: introduced PMA_secureSession()
* sql.php: bug #1305830 wrong db choosen
2005-09-27 Sebastian Mendel <cybot_tm@users.sourceforge.net>
* libraries/sql_query_form.lib.php, db_details.php, server_sql.php

View File

@@ -364,9 +364,7 @@ else {
$full_sql_query = $sql_query;
} // end if...else
if ( isset( $_REQUEST['db'] ) ) {
PMA_DBI_select_db( $_REQUEST['db'] );
}
PMA_DBI_select_db( $db );
// If the query is a DELETE query with no WHERE clause, get the number of
// rows that will be deleted (mysql_affected_rows will always return 0 in