Work even if no db set.
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
||||
2005-10-08 Michal Čihař <michal@cihar.com>
|
||||
* libraries/display_export.lib.php: Use same formatting for all options.
|
||||
* libraries/import/ldi.php: This one does not handle charset conversion.
|
||||
* sql.php: Work even if no db set.
|
||||
|
||||
2005-10-07 Marc Delisle <lem9@users.sourceforge.net>
|
||||
* libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a
|
||||
|
4
sql.php
4
sql.php
@@ -364,7 +364,9 @@ else {
|
||||
$full_sql_query = $sql_query;
|
||||
} // end if...else
|
||||
|
||||
PMA_DBI_select_db( $db );
|
||||
if (isset($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