Drop table doesn't return result set
git-svn-id: https://adminer.svn.sourceforge.net/svnroot/adminer/trunk@510 7c3ca157-0c34-0410-bff1-cbf682f78f5c
This commit is contained in:
parent
47fd1f7349
commit
694a909d20
|
@ -140,10 +140,14 @@ if (isset($_GET["download"])) {
|
|||
$result = queries("RENAME TABLE " . implode(", ", $rename));
|
||||
$message = lang('Tables have been moved.');
|
||||
} elseif ($result = queries((isset($_POST["optimize"]) ? "OPTIMIZE" : (isset($_POST["check"]) ? "CHECK" : (isset($_POST["repair"]) ? "REPAIR" : (isset($_POST["drop"]) ? "DROP" : "ANALYZE")))) . " TABLE " . implode(", ", array_map('idf_escape', $_POST["tables"])))) {
|
||||
if (isset($_POST["drop"])) {
|
||||
$message = lang('Tables have been dropped.');
|
||||
} else {
|
||||
while ($row = $result->fetch_assoc()) {
|
||||
$message .= htmlspecialchars("$row[Table]: $row[Msg_text]") . "<br />";
|
||||
}
|
||||
}
|
||||
}
|
||||
query_redirect(queries(), substr($SELF, 0, -1), $message, $result, false, !$result);
|
||||
}
|
||||
|
||||
|
|
|
@ -204,4 +204,5 @@ $translations = array(
|
|||
'original' => 'původní',
|
||||
'%d item(s) have been affected.' => array('Byl ovlivněn %d záznam.', 'Byly ovlivněny %d záznamy.', 'Bylo ovlivněno %d záznamů.'),
|
||||
'whole result' => 'celý výsledek',
|
||||
'Tables have been dropped.' => 'Tabulky byla odstraněny.',
|
||||
);
|
||||
|
|
Loading…
Reference in a new issue