-
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
Nullable parameter in Select with ?: conditional operator throws InvalidOperationException #17942
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Milestone
Comments
tibitoth
changed the title
Nullable parameter in Select with ?: conditional operator throws NRE
Nullable parameter in Select with ?: conditional operator throws InvalidOperationException
Sep 19, 2019
Related #13859 |
Will take a look at this. Note: related to #12521 which was fixed for 2.2.0. |
roji
added a commit
that referenced
this issue
Oct 29, 2019
roji
added a commit
that referenced
this issue
Oct 29, 2019
roji
added
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
and removed
poachable
labels
Oct 29, 2019
roji
added a commit
that referenced
this issue
Oct 29, 2019
roji
added a commit
that referenced
this issue
Oct 29, 2019
@smitpatel @roji Confirmed fixed as of |
@fschlaef thanks for confirming! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
closed-fixed
The issue has been fixed and is/will be included in the release indicated by the issue milestone.
customer-reported
type-bug
Description
If you use a nullable parameter in a select expression with ?: conditional operator, the EFCore provider evaulates the nullable object's value even that condition branch should be skipped.
Steps to reproduce
Consider this entity and query,
StackTrace
Further technical details
EF Core version: 2.2, 3.0-rc1
Database provider: Microsoft.EntityFrameworkCore.SqlServer
Target framework: .NET FW 4.x with 2.2, .NET Core 3.0-rc1
Operating system: WIndows 10 10.0.18362.356
IDE: Visual Studio 2019 16.3.0-preview4
The text was updated successfully, but these errors were encountered: