View Issue Details

IDProjectCategoryView StatusLast Update
0006689SymmetricDSBugpublic2025-01-03 20:06
Reporterpmarzullo Assigned Topmarzullo  
Prioritynormal 
Status closedResolutionfixed 
Product Version3.15.11 
Target Version3.15.12Fixed in Version3.15.12 
Summary0006689: Postgres negative default values always show as changed
DescriptionWhen the default value for a numeric column is set to a negative value, the postgres ddl reader always reads a value as follows:
'-1'::integer
This value is compared to the target value of:
-1
They are always different, and our ModelComparator always executes an alter to change the default value.
Currently, the only table with negative default values is sym_compare_request.
Steps To Reproduce1. Configure database connection to Postgres.
2. Restart instance, and observe logging for changing tables and the alters that are executed.
Tagsddl/schema, dialect: postgresql

Activities

pbelov

2025-01-03 20:06

manager   ~0002572

Part of 3.15.12 release

Related Changesets

SymmetricDS: 3.15 977e3cc5

2025-01-03 16:36:19

pmarzullo

Details Diff
0006689: Postgres negative default values always show as changed Affected Issues
0006689
mod - symmetric-db/src/main/java/org/jumpmind/db/alter/ModelComparator.java Diff File

Issue History

Date Modified Username Field Change
2025-01-03 16:08 pmarzullo New Issue
2025-01-03 16:08 pmarzullo Status new => assigned
2025-01-03 16:08 pmarzullo Assigned To => pmarzullo
2025-01-03 16:08 pmarzullo Tag Attached: ddl/schema
2025-01-03 16:08 pmarzullo Tag Attached: dialect: postgresql
2025-01-03 16:36 pmarzullo Status assigned => resolved
2025-01-03 16:36 pmarzullo Resolution open => fixed
2025-01-03 16:36 pmarzullo Fixed in Version => 3.15.13
2025-01-03 17:00 pmarzullo Changeset attached => SymmetricDS 3.15 977e3cc5
2025-01-03 19:07 pmarzullo Product Version 3.15.12 => 3.15.11
2025-01-03 19:07 pmarzullo Target Version 3.15.13 => 3.15.12
2025-01-03 19:28 pbelov Fixed in Version 3.15.13 => 3.15.12
2025-01-03 20:06 pbelov Note Added: 0002572
2025-01-03 20:06 pbelov Status resolved => closed