PostgreSQL: Export schema in nextval()

This commit is contained in:
Jakub Vrana
2026-03-01 17:47:17 +01:00
parent 45c7082373
commit e5e9b3a04d
2 changed files with 2 additions and 1 deletions

View File

@@ -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

View File

@@ -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;