You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Predicate.And takes a trailing AND (x) for a top-level conjunct, whatever the precedence #83
area/constraintsExclusion constraints, row guards and other constraint-like objectsbugSomething isn't workingpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)severity/lowCosmetic, message or documentation-level differencesilentAnswers wrongly without throwing; the fix ships as a minor, never a patch
Predicate.And leaves the predicate as it is when its text ends in AND (other). That is 5.x's rule, and it takes the ending for a top-level conjunct whatever stands before it.
new Predicate("{A} OR {B} AND ({C})").And(new Predicate("{C}")) returns {A} OR {B} AND ({C}), which is A OR (B AND C). The condition is wider than the one asked for, so a constraint or a unique index covers rows the caller excluded, and nothing fails.
The translator parenthesises every OR, so only a predicate written by hand reaches this.
Fix
Take for a conjunct only what And itself writes: a template of the form (…) AND (other) whose first parenthesis closes right before AND.
Tests
The case above, and that the result of And is still recognised when the same predicate is added again.
area/constraintsExclusion constraints, row guards and other constraint-like objectsbugSomething isn't workingpackage/coreAffects CodoMetis.EFCore.SchemaKit (the kernel)severity/lowCosmetic, message or documentation-level differencesilentAnswers wrongly without throwing; the fix ships as a minor, never a patch
Activity