Skip to content

Query: incorrect results for complex predicate with bitwise AND operation with bool args #30245

@maumar

Description

@maumar

query:

from o1 in context.Set<OperatorEntityString>()
from o2 in context.Set<OperatorEntityString>()
from o3 in context.Set<OperatorEntityBool>()
where ((EF.Functions.Like(o2.Value, "B") || o3.Value) & (o1.Value != null)) != false
select new { Value1 = o1.Value, Value2 = o2.Value, Value3 = o3.Value };

that predicate gets "optimized" out completely, but it's actually doing something when executed on L2O

Metadata

Metadata

Assignees

No one assigned

    Type

    No fields configured for Bug.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions