Work even if no db set.
This commit is contained in:
@@ -8,6 +8,7 @@ $Source$
|
|||||||
2005-10-08 Michal Čihař <michal@cihar.com>
|
2005-10-08 Michal Čihař <michal@cihar.com>
|
||||||
* libraries/display_export.lib.php: Use same formatting for all options.
|
* libraries/display_export.lib.php: Use same formatting for all options.
|
||||||
* libraries/import/ldi.php: This one does not handle charset conversion.
|
* 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>
|
2005-10-07 Marc Delisle <lem9@users.sourceforge.net>
|
||||||
* libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a
|
* libraries/check_user_privileges.lib.php: bug #1313821, dbname containing a
|
||||||
|
2
sql.php
2
sql.php
@@ -364,7 +364,9 @@ else {
|
|||||||
$full_sql_query = $sql_query;
|
$full_sql_query = $sql_query;
|
||||||
} // end if...else
|
} // end if...else
|
||||||
|
|
||||||
|
if (isset($db)) {
|
||||||
PMA_DBI_select_db($db);
|
PMA_DBI_select_db($db);
|
||||||
|
}
|
||||||
|
|
||||||
// If the query is a DELETE query with no WHERE clause, get the number of
|
// 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
|
// rows that will be deleted (mysql_affected_rows will always return 0 in
|
||||||
|
Reference in New Issue
Block a user