1
0
mirror of https://github.com/vrana/adminer.git synced 2025-08-09 16:17:48 +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

View File

@@ -1,5 +1,6 @@
Adminer 4.3.1-dev:
PostgreSQL: Fix index size computation in PostgreSQL < 9.0 (regression from 4.3.0)
PostgreSQL: Fix nullable fields in export
Adminer 4.3.0 (released 2017-03-15):
Make maxlength in edit fields a soft limit