1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-12 09:34:10 +02:00

Fix PostgreSQL nullable fields in export

This commit is contained in:
Deni
2017-04-06 17:39:25 +02:00
committed by Jakub Vrana
parent f556f6acb1
commit 105aca9b04
2 changed files with 2 additions and 1 deletions

View File

@@ -638,7 +638,7 @@ AND typelem = 0"
foreach ($fields as $field_name => $field) {
$part = idf_escape($field['field']) . ' ' . $field['full_type']
. (is_null($field['default']) ? "" : " DEFAULT $field[default]")
. ($field['attnotnull'] ? "" : " NOT NULL");
. ($field['attnotnull'] ? " NOT NULL" : "");
$return_parts[] = $part;
// sequences for fields