From d5bce9b3e945b23e195dda81923e55a73b554fd8 Mon Sep 17 00:00:00 2001 From: Peter Knut Date: Tue, 10 Sep 2024 08:25:34 +0200 Subject: [PATCH] PostreSQL: Fix search fields configuration Regression from 4.9. --- adminer/drivers/pgsql.inc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/adminer/drivers/pgsql.inc.php b/adminer/drivers/pgsql.inc.php index eafce8f8..082bb70a 100644 --- a/adminer/drivers/pgsql.inc.php +++ b/adminer/drivers/pgsql.inc.php @@ -378,7 +378,7 @@ ORDER BY a.attnum" } $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]); }