-
Notifications
You must be signed in to change notification settings - Fork 3.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Query: compilation error for queries that compare reference navigation to null, if the navigation can be optimized into FK #9241
Comments
This happens because in nav rewrite, when we visit binary expression, after visiting left and right operands we recreate new expression using
problem is that for o.Customer == null, the left operand gets converted into FK: o.CustomerID, which is typed as string, not Customer. However we still try to use method from the original expression which is op_Equality(Customer, Customer) |
@maumar - Perhaps defer this to Nav rewrite? |
I believe this is already fixed in new entity equality. Need a regression test. |
verified this issue has been fixed in 3.0 |
@maumar want to also write the regression test? If so you can unassign me, or otherwise unassign yourself etc. |
@roji i have a pr with regression tests for all those issues almost ready |
repro:
exception:
The text was updated successfully, but these errors were encountered: