Fix altering of default values in PostgreSQL
This commit is contained in:
parent
06aa0f842b
commit
cde1d43e89
|
@ -241,6 +241,9 @@ ORDER BY a.attnum"
|
|||
$row["null"] = ($row["attnotnull"] == "f");
|
||||
$row["auto_increment"] = eregi("^nextval\\(", $row["default"]);
|
||||
$row["privileges"] = array("insert" => 1, "select" => 1, "update" => 1);
|
||||
if (preg_match('~^(.*)::.+$~', $row["default"], $match)) {
|
||||
$row["default"] = ($match[1][0] == "'" ? idf_unescape($match[1]) : $match[1]);
|
||||
}
|
||||
$return[$row["field"]] = $row;
|
||||
}
|
||||
return $return;
|
||||
|
|
|
@ -1,4 +1,5 @@
|
|||
Adminer 3.3.1-dev:
|
||||
Fix altering default values (PostgreSQL)
|
||||
Process list (PostgreSQL)
|
||||
|
||||
Adminer 3.3.0 (released 2011-07-19):
|
||||
|
|
Loading…
Reference in a new issue