diff --git a/adminer/drivers/sqlite.inc.php b/adminer/drivers/sqlite.inc.php index f206c023..d5fb44a7 100644 --- a/adminer/drivers/sqlite.inc.php +++ b/adminer/drivers/sqlite.inc.php @@ -756,10 +756,14 @@ if (isset($_GET["sqlite"]) || isset($_GET["sqlite2"])) { } function show_variables() { - global $connection; $return = array(); foreach (get_rows("PRAGMA pragma_list") as $row) { - $return[$row["name"]] = $connection->result("PRAGMA $row[name]"); + $name = $row["name"]; + if ($name != "pragma_list" && $name != "compile_options") { + foreach (get_rows("PRAGMA $name") as $row) { + $return[$name] .= implode(", ", $row) . "\n"; + } + } } return $return; } diff --git a/adminer/variables.inc.php b/adminer/variables.inc.php index 46604f8b..16c14798 100644 --- a/adminer/variables.inc.php +++ b/adminer/variables.inc.php @@ -10,7 +10,7 @@ if (!$variables) { foreach ($variables as $key => $val) { echo ""; echo "" . h($key) . ""; - echo "" . h($val); + echo "" . nl_br(h($val)); } echo "\n"; } diff --git a/changes.txt b/changes.txt index 576139b8..08adefbb 100644 --- a/changes.txt +++ b/changes.txt @@ -1,5 +1,6 @@ Adminer-4.17.2-dev: SQLite: Add command Check tables +SQLite: Display all rows of variable values MongoDB: Remove support for deprecated extension mongo Adminer-4.17.1 (released 2025-02-25):