Page 1 of 1

Bug with EFCore 2 - ORA-00920

Posted: Mon 05 Feb 2018 14:45
by seb1487
Hi,
dotConnect throws an error on an boolean Query like this (Oracle 10):

Code: Select all

dbContext.Class1.Any(o => o.MyBoolProp);
Error:
'ORA-00920: invalid relational operator'

Generated SQL:

Code: Select all

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

Re: Bug with EFCore 2 - ORA-00920

Posted: Wed 07 Feb 2018 17:56
by Shalex
Thank you for your report. We will notify you when the issue is fixed.

Re: Bug with EFCore 2 - ORA-00920

Posted: Thu 08 Feb 2018 15:05
by Shalex
The bug with using bool properties in the .Any() clause of LINQ query in EF Core 2 is fixed. We have sent the internal build with the fix to your email.

Re: Bug with EFCore 2 - ORA-00920

Posted: Thu 15 Feb 2018 18:43
by Shalex
New build of dotConnect for Oracle 9.5.454 is available for download now: viewtopic.php?f=1&t=36602.