Skip to content

[9.0] Fix tsvector columns over JSON-owned navigations - #4077

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

roji merged 1 commit into
hotfix/9.0.5from
roji-9-0-json-tsvector-backport

Conversation

@roji

@roji roji commented Oct 23, 2026

Copy link
Copy Markdown
Member

Backport of #3893 to hotfix/9.0.5.

Resolves included owned-JSON navigation names to their actual container columns, including renamed containers, instead of throwing a NullReferenceException. Preserves scalar-property resolution, the existing json/jsonb_to_tsvector SQL and all filter, and the merged diagnostic for unresolved or non-JSON members:

Included member '{property}' on '{entityType}' could not be resolved to a column for the generated tsvector.

Adapted narrowly for EF9: uses its parameterless GetContainerColumnName() API, omits unsupported complex-JSON lookup/tests, and adapts the renamed-container migration regression to owned JSON. Retains regression coverage for scalar properties declared on non-JSON complex types. No configuration-order, table-splitting, or dependency changes.

Validation with .NET SDK 9.0.312 and local PostgreSQL 18:

  • 6 annotation-provider tests passed.
  • 6 generated-tsvector migration tests passed, including owned JSON and renamed owned containers.
  • Relevant provider and test projects built successfully.

Fixes #3075

Backport of #3893 (fc4430e), adapted to EF9 owned-JSON mapping without complex-JSON APIs.

Co-authored-by: Shay Rojansky <[email protected]>
Co-authored-by: Copilot App <[email protected]>
@roji
roji merged commit 00b6a9c into hotfix/9.0.5 Oct 23, 2026
10 checks passed
@roji
roji deleted the roji-9-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.

2 participants