Skip to content

[8.0] Fix hstore SQL literal generation for null and escaped values - #4107

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

roji merged 1 commit into
hotfix/8.0.12from
roji-hstore-literal-backport-8-0

Conversation

@roji

@roji roji commented Oct 24, 2026

Copy link
Copy Markdown
Member

Backports #3780 to hotfix/8.0.12 (cherry-picked from 157ae7f without adaptations).

Fixes hstore literal generation for null entries, empty dictionaries, and escaped keys/values. Includes all upstream regression tests, including single-null and trailing-null values.

Fixes #4103.

Validation: dotnet test test/EFCore.PG.Tests/EFCore.PG.Tests.csproj --filter 'FullyQualifiedName~NpgsqlTypeMappingTest' --verbosity minimal --logger 'console;verbosity=minimal' using the branch's .NET 8 SDK selection and VSTest: 160 passed, 6 existing skips, 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 e1b8624 into hotfix/8.0.12 Oct 24, 2026
7 checks passed
@roji
roji deleted the roji-hstore-literal-backport-8-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