Repository navigation
[9.0] Fix byte-array projections from JSON collections - #4074
Merged
Merged
Conversation
Backport #4067, retaining the late JSON postprocessor and its comments. Adapt regression coverage to EF9 owned ToJson collection mapping for json/jsonb, sync/async, null/empty payloads, and binary equality. Fixes #3566 Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: f9d39831-0c6c-4de0-9216-259844517ec4
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 #4067 to
hotfix/9.0.5.Fixes #3566.
Preserve the merged JSON postprocessor and its explanatory comments unchanged: extract affected
json_to_recordset/jsonb_to_recordsetbinary fields astextand decode their references after relational postprocessing, keeping SQL flat without wrapper subqueries.Adapt regression coverage to EF9's owned
ToJsoncollection mapping inAdHocJsonQueryNpgsqlTest. Coverjson/jsonb, sync/async execution, exact bytes[0, 1, 127, 128, 255], empty/null values, full-document materialization versus collection projection, and server-side binary equality. No dependency changes or main-only warning suppressions.Validation: all four regression cases failed with the original base64-text bytes before the fix and pass afterward, including SQL baselines. EF9 JSON suites passed against an isolated PostgreSQL 17 container: 1,453 passed, 13 skipped.