mirror of
https://github.com/vrana/adminer.git
synced 2026-06-16 13:00:16 +02:00
PostgreSQL: Fix setting NULL and original value on enum (bug #884)
This commit is contained in:
@@ -234,6 +234,11 @@ if (isset($_GET["pgsql"])) {
|
||||
}
|
||||
}
|
||||
|
||||
function enumLength($field) {
|
||||
$enum = $this->types[lang('User types')][$field["type"]];
|
||||
return ($enum ? type_values($enum) : "");
|
||||
}
|
||||
|
||||
function setUserTypes($types) {
|
||||
$this->types[lang('User types')] = array_flip($types);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user