From ddaa8947eeecc05f7a8caa5bd9f5514422d91d40 Mon Sep 17 00:00:00 2001 From: Jakub Vrana Date: Wed, 1 Dec 2010 09:40:39 +0100 Subject: [PATCH] History: edit all --- adminer/sql.inc.php | 3 +++ changes.txt | 3 +++ 2 files changed, 6 insertions(+) diff --git a/adminer/sql.inc.php b/adminer/sql.inc.php index e630c3c7..b5eebb49 100644 --- a/adminer/sql.inc.php +++ b/adminer/sql.inc.php @@ -145,6 +145,8 @@ if (!$error && $_POST) { $q = $_GET["sql"]; // overwrite $q from if ($_POST) to save memory if ($_POST) { $q = $_POST["query"]; +} elseif ($_GET["history"] == "all") { + $q = implode(";\n\n\n", $history); } elseif ($_GET["history"] != "") { $q = $history[$_GET["history"]]; } @@ -178,6 +180,7 @@ if ($history) { echo '' . lang('Edit') . " " . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $val)))), 80, "") . "
\n"; } echo "\n"; + echo "" . lang('Edit') . "\n"; echo "\n"; } ?> diff --git a/changes.txt b/changes.txt index 0dfe60a8..f44b4fb9 100644 --- a/changes.txt +++ b/changes.txt @@ -1,6 +1,9 @@ Adminer 3.2.0-dev: Get long texts and slow information by AJAX All links and some forms by AJAX in browsers with support for history.pushState +History: edit all +MS SQL: auto primary and foreign key +SQLite: display 0 Adminer 3.1.0 (released 2010-11-16): TSV export and import