Problem with bool WHERE clause in EFCore

Discussion of open issues, suggestions and bugs regarding ADO.NET provider for Oracle
Post Reply
seb1487
Posts: 23
Joined: Fri 24 Jun 2016 10:27

Problem with bool WHERE clause in EFCore

Post by seb1487 » Thu 22 Sep 2016 13:59

Hi Shalex,
dotConnect throws an error on an boolean Query like this:

Code: Select all

_dbContext.Class1.Any(o => o.MyBoolProp)
Generated SQL:

Code: Select all

SELECT CASE
    WHEN EXISTS (
        SELECT 1
        FROM "Class1" "o"
        WHERE "o"."MyBoolProp")
    THEN 1 ELSE 0
END
FROM DUAL

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Problem with bool WHERE clause in EFCore

Post by Shalex » Fri 23 Sep 2016 18:28

Thank you for your report. We have reproduced the issue and are investigating it. We will notify you about the result.

Shalex
Site Admin
Posts: 9543
Joined: Thu 14 Aug 2008 12:44

Re: Problem with bool WHERE clause in EFCore

Post by Shalex » Thu 06 Oct 2016 16:13

The bug with comparing bool class property with some value in EF Core is fixed: viewtopic.php?f=1&t=34384.

Post Reply