1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-08 07:36:44 +02:00

SQLite: Display all rows of variable values

This commit is contained in:
Jakub Vrana
2025-02-26 10:46:46 +01:00
parent 8077ef41c1
commit ab025e74a3
3 changed files with 8 additions and 3 deletions

View File

@@ -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;
}