Skip to content

Commit

Permalink
Do not forget reloading when launching multiple queries (bug #1090818).
Browse files Browse the repository at this point in the history
  • Loading branch information
nijel committed Jan 1, 2005
1 parent c497116 commit ffea49b
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 2 additions & 0 deletions ChangeLog
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ $Source$
2005-01-01 Michal Čihař <michal@cihar.com>
* tbl_alter.php: Don't try to set collation for non text fields (bug
#1094109).
* sql.php: Do not forget reloading when launching multiple queries (bug
#1090818).

2004-12-30 Marc Delisle <lem9@users.sourceforge.net>
* lang/swedish: Updated, thanks to Björn T. Hallberg (bth).
Expand Down
5 changes: 4 additions & 1 deletion sql.php
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,10 @@
else {
$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;
}
}

/**
Expand Down

0 comments on commit ffea49b

Please sign in to comment.