]> git.joonet.de Git - adminer.git/commitdiff
History: edit all
authorJakub Vrana <jakub@vrana.cz>
Wed, 1 Dec 2010 08:40:39 +0000 (09:40 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 1 Dec 2010 08:40:39 +0000 (09:40 +0100)
adminer/sql.inc.php
changes.txt

index e630c3c7057e4d743f3b10d17911a92f684ea570..b5eebb492e5f993ae6074dae5581843cbb7bd71b 100644 (file)
@@ -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 '<a href="' . h(ME . "sql=&history=$key") . '">' . lang('Edit') . "</a> <code class='jush-$jush'>" . shorten_utf8(ltrim(str_replace("\n", " ", str_replace("\r", "", preg_replace('~^(#|-- ).*~m', '', $val)))), 80, "</code>") . "<br>\n";
        }
        echo "<input type='submit' name='clear' value='" . lang('Clear') . "'>\n";
+       echo "<a href='" . h(ME . "sql=&history=all") . "'>" . lang('Edit') . "</a>\n";
        echo "</div></fieldset>\n";
 }
 ?>
index 0dfe60a8367fe8a8f5faaf437a033190741f3da3..f44b4fb93b1f77e1c846f4692f916b595dc89f8a 100644 (file)
@@ -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