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:
@@ -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"));
|
||||
|
@@ -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) {
|
||||
|
@@ -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";
|
||||
}
|
||||
|
Reference in New Issue
Block a user