Repository navigation
fix: an empty 5.x exclusion list on a TPC type is no constraint - #201
Merged
Merged
Conversation
The 5.x reader refused a TPC type with derived types in a snapshot from before 5.5.0 as soon as the annotation was there, also when its list held no entry. It now reads the list first: without an entry there is no constraint, whatever the type is mapped as (#171). #172 was fixed by the impact table of #117, which finds a changed column by its name. Its scenario, an element column that becomes computed beside a rename of its table, is now a test of the diff and one on a live server. Closes #171 Closes #172 Co-Authored-By: Claude Fable 5.2 <[email protected]>
CaffeinatedCoder
enabled auto-merge
November 25, 2026 17:45
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #171
Closes #172
Problem
CustomExclusion:Constraintswas there, also when its list was empty. Such a snapshot holds no constraint and was refused as if it held one.PgExclusion'sImpactOfcompared a table named as the target has it with columns named as the source has them. The impact table of Impact from a measured table per provider, keyed by object kind, role and change #117 finds a changed column by its name alone, so this was fixed already, but no test held the scenario.Change
ComplexIndexes5xExclusionReaderreads the list first and returns nothing for a list without an entry, before it looks at the mapping strategy and the rendering version.src/for PgExclusion ImpactOf compares a target-named table with source-named key columns #172.Tests
A_constraint_on_the_root_of_a_TPC_hierarchy_is_read_from_the_version_that_made_copiesalso holds"[]"and"". It fails with the empty check taken out.An_element_column_that_becomes_computed_beside_a_rename_of_its_table_is_found_by_its_name(the diff) andMaking_an_element_column_a_computed_one_and_renaming_its_table(live). The first fails when the column is looked up with the change's table.🤖 Generated with Claude Code