mirror of
https://github.com/vrana/adminer.git
synced 2026-07-16 10:21:45 +02:00
PostgreSQL: Export schema in nextval()
This commit is contained in:
@@ -6,6 +6,7 @@
|
||||
- Foreign key: Display new field in case of an error
|
||||
- PostgreSQL: Order NULL last
|
||||
- PostgreSQL: Display all SQL command warnings and only once
|
||||
- PostgreSQL: Export schema in nextval()
|
||||
- Editor: Display tinyint(1) as checkbox (bug #1246, regression from 5.4.2)
|
||||
- Croatian translation
|
||||
|
||||
|
||||
@@ -946,7 +946,7 @@ AND typelem = 0"
|
||||
// fields' definitions
|
||||
foreach ($fields as $field) {
|
||||
$part = idf_escape($field['field']) . ' ' . $field['full_type']
|
||||
. default_value($field)
|
||||
. preg_replace('~(nextval\(\')([^.\']+\')~', '\1' . str_replace("'", "''", $status['nspname']) . '.\2', default_value($field))
|
||||
. ($field['null'] ? "" : " NOT NULL");
|
||||
$return_parts[] = $part;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user