Do not forget reloading when launching multiple queries (bug #1090818).

This commit is contained in:
Michal Čihař
2005-01-01 21:36:48 +00:00
parent c4971162a6
commit ffea49bf03
2 changed files with 6 additions and 1 deletions

View File

@@ -8,6 +8,8 @@ $Source$
2005-01-01 Michal Čihař <michal@cihar.com> 2005-01-01 Michal Čihař <michal@cihar.com>
* tbl_alter.php: Don't try to set collation for non text fields (bug * tbl_alter.php: Don't try to set collation for non text fields (bug
#1094109). #1094109).
* sql.php: Do not forget reloading when launching multiple queries (bug
#1090818).
2004-12-30 Marc Delisle <lem9@users.sourceforge.net> 2004-12-30 Marc Delisle <lem9@users.sourceforge.net>
* lang/swedish: Updated, thanks to Björn T. Hallberg (bth). * lang/swedish: Updated, thanks to Björn T. Hallberg (bth).

View File

@@ -139,7 +139,10 @@ if ($is_select) {
else { else {
$db = $prev_db; $db = $prev_db;
} }
$reload = ($db == $prev_db) ? 0 : 1; // Nijel don't change reload, if we already decided to reload in read_dump
if (!isset($reload) || $reload == 0) {
$reload = ($db == $prev_db) ? 0 : 1;
}
} }
/** /**