Skip to content

[9.0] Fix hstore SQL literal generation for null and escaped values - #4105

Merged
roji merged 1 commit into
hotfix/9.0.5from
roji-hstore-literal-backport-9-0
Oct 24, 2026
Merged

roji merged 1 commit into
hotfix/9.0.5from
roji-hstore-literal-backport-9-0

Conversation

@roji

@roji roji commented Oct 24, 2026

Copy link
Copy Markdown
Member

Backports #3780 to hotfix/9.0.5 via cherry-pick of 157ae7f, without branch-specific adaptations.

Fixes #4103

Includes the complete fix and regression coverage for null-entry separators, single/trailing null values, empty dictionaries, and escaped keys and values.

Validated with the branch-pinned .NET SDK 9.0.312:

dotnet test test/EFCore.PG.Tests/EFCore.PG.Tests.csproj --filter FullyQualifiedName~NpgsqlTypeMappingTest --verbosity quiet --nologo

160 passed, 6 skipped, 0 failed.

Co-authored-by: Copilot <[email protected]>
Co-authored-by: Shay Rojansky <[email protected]>
Co-authored-by: Copilot App <[email protected]>
(cherry picked from commit 157ae7f)
@roji
roji merged commit 96a554b into hotfix/9.0.5 Oct 24, 2026
10 checks passed
@roji
roji deleted the roji-hstore-literal-backport-9-0 branch October 24, 2026 20:33
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.

hstore SQL literals corrupt null values and backslashes and fail for empty dictionaries and quotes

2 participants