Skip to content
Browse files

Print data in only_errors mode (important for ALTER export)

  • Loading branch information...
1 parent 6775ac1 commit b3c8d71163717af9ec46066e3d263370439c4287 @vrana committed Oct 22, 2010
Showing with 7 additions and 3 deletions.
  1. +7 −3 adminer/sql.inc.php
View
10 adminer/sql.inc.php
@@ -101,7 +101,11 @@
if (!$_POST["only_errors"]) {
echo "<p class='message' title='" . h($connection->info) . "'>" . lang('Query executed OK, %d row(s) affected.', $connection->affected_rows) . "$time\n";
}
- } elseif (!$_POST["only_errors"]) {
+ } else {
+ if ($_POST["only_errors"]) {
+ echo $print;
+ $print = "";
+ }
select($result, $connection2);
echo "<p>" . ($result->num_rows ? lang('%d row(s)', $result->num_rows) : "") . $time;
if ($connection2 && preg_match("~^($space|\\()*SELECT\\b~isU", $q)) {
@@ -152,8 +156,8 @@
<input type="hidden" name="token" value="<?php echo $token; ?>">
<input type="submit" value="<?php echo lang('Execute'); ?>" title="Ctrl+Enter">
<?php
-echo checkbox("error_stops", 1, $_POST["error_stops"], lang('Stop on error'));
-echo checkbox("only_errors", 1, $_POST["only_errors"], lang('Show only errors'));
+echo checkbox("error_stops", 1, $_POST["error_stops"], lang('Stop on error')) . "\n";
+echo checkbox("only_errors", 1, $_POST["only_errors"], lang('Show only errors')) . "\n";
print_fieldset("webfile", lang('From server'), $_POST["webfile"]);
$compress = array();

0 comments on commit b3c8d71

Please sign in to comment.
Something went wrong with that request. Please try again.