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

PostgreSQL: Fix help link to pg_catalog views

This commit is contained in:
Jakub Vrana
2025-02-26 19:21:13 +01:00
parent 4b47326ffa
commit ba70be12a4
5 changed files with 10 additions and 7 deletions

View File

@@ -335,7 +335,7 @@ if (!defined("DRIVER")) {
}
}
function tableHelp($name) {
function tableHelp($name, $is_view = false) {
$maria = preg_match('~MariaDB~', $this->_conn->server_info);
if (information_schema(DB)) {
return strtolower("information-schema-" . ($maria ? "$name-table/" : str_replace("_", "-", $name) . "-table.html"));

View File

@@ -238,10 +238,10 @@ if (isset($_GET["pgsql"])) {
return $this->_conn->warnings();
}
function tableHelp($name) {
function tableHelp($name, $is_view = false) {
$links = array(
"information_schema" => "infoschema",
"pg_catalog" => "catalog",
"pg_catalog" => ($is_view ? "view" : "catalog"),
);
$link = $links[$_GET["ns"]];
if ($link) {

View File

@@ -130,7 +130,7 @@ if (isset($_GET["sqlite"])) {
return queries("REPLACE INTO " . table($table) . " (" . implode(", ", array_keys(reset($rows))) . ") VALUES\n" . implode(",\n", $values));
}
function tableHelp($name) {
function tableHelp($name, $is_view = false) {
if ($name == "sqlite_sequence") {
return "fileformat2.html#seqtab";
}