Repository navigation
[9.0] Preserve array element converters with explicit column types - #4014
Merged
Merged
Conversation
Backport of #4007. Preserve explicit array column-type precedence and adapt the Contains SQL assertion to the 9.0 containment translation. Fixes #3636 (cherry picked from commit 9357929) Co-authored-by: Copilot App <[email protected]> Copilot-Session: bda9aa2e-f002-4257-9792-18a68ee0b9f2
Port the correction from the 10.0 backport: compose converters over the JSON reader/writer selected for the explicit element store type instead of restoring the inferred writer. Cover timestamp array JSON serialization with and without an element converter. (cherry picked from commit 842f9cd) Co-authored-by: Copilot App <[email protected]> Copilot-Session: bda9aa2e-f002-4257-9792-18a68ee0b9f2
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.
Backport of #4007 to
hotfix/9.0.5.Preserves configured array element converters while retaining explicit array column-type precedence and the expanded rationale comment. Includes the original functional and type-mapping regression coverage; the
ContainsSQL assertion is adapted to 9.0's@>array-containment translation instead of main'sANYtranslation.Cherry-picked from 9357929.
Includes the CI correction from the merged 10.0 backport (#4011, commit 842f9cd): converter composition retains the JSON reader/writer selected for the explicit element store type instead of restoring the inferred writer. Two regression cases verify timestamp array JSON serialization with and without an element converter; both reproduced the CI exception before the correction.
Validated with the pinned .NET SDK 9.0.312 and PostgreSQL 18.4:
NpgsqlTypeMappingSourceTest: 106 passed.No SDK or dependency configuration changes.
Fixes #3636