bug #1305830 wrong db choosen
This commit is contained in:
@@ -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
|
||||
|
4
sql.php
4
sql.php
@@ -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
|
||||
|
Reference in New Issue
Block a user