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

PostgreSQL: Fix exporting string default values (thanks to PotatoPangolin)

This commit is contained in:
Jakub Vrana
2018-02-09 15:29:54 +01:00
parent ea4ac5c8f3
commit eeb7ce1939
3 changed files with 12 additions and 4 deletions

View File

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