Skip to content

[10.0] Fix type mapping for derived tsquery parameters - #4060

Merged
roji merged 1 commit into
hotfix/10.0.4from
roji-tsquery-backport-10-0
Oct 20, 2026
Merged

roji merged 1 commit into
hotfix/10.0.4from
roji-tsquery-backport-10-0

Conversation

@roji

@roji roji commented Oct 20, 2026

Copy link
Copy Markdown
Member

Backports #4058 (baa07f7) to hotfix/10.0.4 without changes.

Registers all seven built-in NpgsqlTsQuery subclasses with the existing tsquery mapping so captured derived-type parameters work in full-text queries. Generic mapping lookup and SQL translation remain unchanged. Includes mapping coverage for the base type and all built-in subclasses, plus sync/async Matches regression coverage.

Validated with the branch-selected .NET SDK 10.0.300 and pinned dependencies: 141 type-mapping tests and both functional regressions passed. Functional tests used a dedicated PostgreSQL 17 container, removed after testing.

The separate empty-tsquery serialization issue #886 remains out of scope.

Fixes #3041

Register built-in NpgsqlTsQuery subclasses with the existing tsquery mapping and cover mapping lookup and Matches query execution.

(cherry picked from commit baa07f7)

Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
Copilot-Session: 37ecc207-3a95-4ce4-ac27-35975dc5c74f
@roji roji linked an issue Oct 20, 2026 that may be closed by this pull request
@roji
roji merged commit 720bc8d into hotfix/10.0.4 Oct 20, 2026
10 checks passed
@roji
roji deleted the roji-tsquery-backport-10-0 branch October 20, 2026 16:10
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.

Full Text Search method "Matches" fails when not using a string query

1 participant