]> git.joonet.de Git - adminer.git/commitdiff
PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
authorJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 11:51:50 +0000 (12:51 +0100)
committerJakub Vrana <jakub@vrana.cz>
Wed, 19 Feb 2025 13:35:19 +0000 (14:35 +0100)
adminer/sql.inc.php
adminer/static/default.css
changes.txt

index ae8d61aadb25d4847d2b89b8de11c4d89a58b70a..ca2c3d41b03086b74be354e324d42fd540a2af49 100644 (file)
@@ -182,7 +182,7 @@ if (!$error && $_POST) {
                                                                        }
                                                                        echo ($warnings ? "<div id='$warnings_id' class='hidden'>\n$warnings</div>\n" : "");
                                                                        if ($explain) {
-                                                                               echo "<div id='$explain_id' class='hidden'>\n";
+                                                                               echo "<div id='$explain_id' class='hidden explain'>\n";
                                                                                select($explain, $connection2, $orgtables);
                                                                                echo "</div>\n";
                                                                        }
index 5ab148effccfc75ada8b1c4f80666500430a564f..53c896e30fa363b4ce943379e9f43a123461f997 100644 (file)
@@ -56,6 +56,7 @@ input.wayoff { left: -1000px; position: absolute; }
 .view { font-style: italic; }
 .active { font-weight: bold; }
 .sqlarea { width: 98%; }
+.explain { white-space: pre; }
 .icon { width: 18px; height: 18px; background-color: navy; }
 .icon:hover { background-color: red; }
 .size { width: 6ex; }
index 581cb09c6e1f80e16022deafe96b77a678e2ad6c..aea1fcf45947a77cb9436dce42f97f6edd2e32b6 100644 (file)
@@ -1,4 +1,5 @@
 Adminer 4.16.0-dev:
+PostgreSQL: Preserve whitespace in EXPLAIN (bug #827)
 Oracle: Include tables granted by other user
 
 Adminer 4.15.0: