mirror of
https://github.com/vrana/adminer.git
synced 2025-08-10 08:34:20 +02:00
PostgreSQL: Fix where and order privileges (fix #902)
This commit is contained in:
@@ -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]);
|
||||
}
|
||||
|
@@ -6,6 +6,7 @@ MySQL: Allow setting default values of text column
|
||||
MySQL: Stop treating enum and set as numbers (bug #475)
|
||||
MySQL, MariaDB: Fix default values with ' (bug #895)
|
||||
MariaDB: Fix creating and altering generated columns (bug #897)
|
||||
PostgreSQL: Fix "where" and "order" privileges (bug #902, regression from 5.0.2)
|
||||
SQLite: Fix creating table in compiled version (bug #901, regression from 5.0.0)
|
||||
Elastic: Do not pass null values on insert (PR #892)
|
||||
Elastic: Fix displaying sparse rows (PR #893)
|
||||
|
Reference in New Issue
Block a user