Skip to content

10.x: reject a string set compared with a value under a collation that may not compare bytes (port of #507) #512

Closed

Description

@CaffeinatedCoder

Problem

On main, the PR for #507 makes a query throw when it compares a string set with a value under a collation that may not compare bytes. On release/10.x, Members.Contains(g.Owner) with a case-insensitive Owner matches {A} for "a", and ExecuteUpdate with Remove(g.Owner) deletes A. #496's 10.4.0 row says that class is fixed.

Change

Cherry-pick the #507 PR's commits with -x into a PR against release/10.x: the guard's collation derivation, the convention's annotation, the tests (with the compiled-model helper), the oracle, both seeds and claim E89.

Done when

On release/10.x, the tests pass on the EF Core 10.0.0 floor and on CI's newest-patch leg, they fail with the fix reverted, and both seeds are caught.

Release

### Changed answers in 10.4.0. Fixed only on release/10.x, so close it by hand.

Activity

  1. added this to the 10.4.0 milestone on Oct 26, 2026
  2. added
    bugSomething isn't working
    silentAnswers wrongly without throwing — fixes go in the next major, never deferred
    area/value-setsValue set families and wrapper arities
    package/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQL
    severity/mediumInconsistency or failure in a narrow scenario
    on Oct 26, 2026
  3. added a commit that references this issue on Oct 26, 2026
  4. CaffeinatedCoder commented on Oct 26, 2026

    @CaffeinatedCoder
    OwnerAuthor

    Merged into release/10.x by #516 (07d92df); ships in 10.4.0. Port of #507 (main: #513).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area/value-setsValue set families and wrapper aritiesbugSomething isn't workingpackage/efcoreAffects CodoMetis.ValueRanges.EFCore.PostgreSQLseverity/mediumInconsistency or failure in a narrow scenariosilentAnswers wrongly without throwing — fixes go in the next major, never deferred

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions