Skip to content

[8.0] Fix tsvector columns over owned JSON navigations - #4078

Merged
roji merged 1 commit into
hotfix/8.0.12from
roji-8-0-json-tsvector-backport
Oct 23, 2026
Merged

roji merged 1 commit into
hotfix/8.0.12from
roji-8-0-json-tsvector-backport

Conversation

@roji

@roji roji commented Oct 23, 2026

Copy link
Copy Markdown
Member

Backport of #3893 to hotfix/8.0.12.

Fixes #3075

Resolve generated-tsvector included owned-JSON navigation names to their actual container columns, including renamed columns, instead of failing with a NullReferenceException. Includes the final diagnostic for members that cannot be resolved to a column.

Adapted for EF8's existing container-column API. Complex-JSON mapping code/tests are omitted because EF8 does not support that feature; the renamed-container migration test uses an owned JSON navigation instead. Scalar behavior and the existing JSON "all" filter are unchanged. No configuration-order/table-splitting changes or dependency updates.

Validation on .NET 8 and local PostgreSQL 18:

  • Annotation regression tests: 6 passed, including typed HasGeneratedTsVectorColumn, renamed owned containers, mixed scalar/JSON members, scalar complex properties, and diagnostics.
  • Generated-tsvector migration tests: 6 passed, including both new owned-JSON cases and existing scalar/JSON cases.
  • Relevant provider and test projects build successfully.

Backport #3893 (fc4430e), adapting container-column resolution and regression tests for EF8 without complex-JSON mapping support.

Co-authored-by: Copilot App <[email protected]>
@roji
roji merged commit b568122 into hotfix/8.0.12 Oct 23, 2026
9 checks passed
@roji
roji deleted the roji-8-0-json-tsvector-backport branch October 23, 2026 17:47
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant