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

PostgreSQL: Fix where and order privileges (fix #902)

This commit is contained in:
Jakub Vrana
2025-03-11 13:07:00 +01:00
parent 1defc94d12
commit 7ef009336f
2 changed files with 2 additions and 1 deletions

View File

@@ -461,7 +461,7 @@ ORDER BY a.attnum") as $row
$row["generated"] = ($row["attgenerated"] == "s" ? "STORED" : "");
$row["null"] = !$row["attnotnull"];
$row["auto_increment"] = $row['attidentity'] || preg_match('~^nextval\(~i', $row["default"]);
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1);
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1, "where" => 1, "order" => 1);
if (preg_match('~(.+)::[^,)]+(.*)~', $row["default"], $match)) {
$row["default"] = ($match[1] == "NULL" ? null : idf_unescape($match[1]) . $match[2]);
}