PostgreSQL: Fix displaying NULL bytea fields
This commit is contained in:
parent
c5b5b61be1
commit
7a89b5a037
|
@ -40,7 +40,7 @@ if (isset($_GET["pgsql"])) {
|
|||
}
|
||||
|
||||
function value($val, $field) {
|
||||
return ($field["type"] == "bytea" ? pg_unescape_bytea($val) : $val);
|
||||
return ($field["type"] == "bytea" && $val !== null ? pg_unescape_bytea($val) : $val);
|
||||
}
|
||||
|
||||
function quoteBinary($string) {
|
||||
|
|
|
@ -9,6 +9,7 @@ PostgreSQL: Create PRIMARY KEY for auto increment columns
|
|||
PostgreSQL: Avoid exporting empty sequence last value (bug #768)
|
||||
PostgreSQL: Do not show triggers from other schemas (PR #412)
|
||||
PostgreSQL: Fix multi-parameter functions in default values (bug #736)
|
||||
PostgreSQL: Fix displaying NULL bytea fields
|
||||
PostgreSQL PDO: Do not select NULL function for false values in edit
|
||||
Oracle: Alter indexes
|
||||
Oracle: Count tables
|
||||
|
|
Loading…
Reference in a new issue