Work even if no db set.

This commit is contained in:
Michal Čihař
2005-10-08 09:51:56 +00:00
parent 6c09b4bd58
commit 79c05d5cb9
2 changed files with 4 additions and 1 deletions

View File

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

View File

@@ -364,7 +364,9 @@ else {
$full_sql_query = $sql_query;
} // end if...else
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