Page 1 of 1

ORA-01036 and ORA-00920 with bitwise AND operator

Posted: Wed 22 Jan 2020 11:47
by kakone
Hello,

I'm evaluating dotConnect for Oracle with EF Core 3.1. When I use a bitwise AND operator in my queries, I get the ORA-01036 or ORA-00920 exceptions.

This is my query :

Code: Select all

var kind = 1;
var thirdParties = dbContext.ThirdParties.Where(tp => (tp.Kind & kind) > 0).ToList();
I get the Devart.Data.Oracle.OracleException: 'ORA-01036: illegal variable name/number'

When I remove the variable :

Code: Select all

var thirdParties = dbContext.ThirdParties.Where(tp => (tp.Kind & 1) > 0).ToList();
I get the Devart.Data.Oracle.OracleException: 'ORA-00920: invalid relational operator'

What am I doing wrong?

Re: ORA-01036 and ORA-00920 with bitwise AND operator

Posted: Thu 23 Jan 2020 20:25
by Shalex
We have reproduced the issue and will notify you when it is fixed.

Re: ORA-01036 and ORA-00920 with bitwise AND operator

Posted: Thu 06 Feb 2020 17:05
by kakone
Any news on this?

Re: ORA-01036 and ORA-00920 with bitwise AND operator

Posted: Tue 11 Feb 2020 19:03
by Shalex
The bug with using binary operators AND, OR in EF Core 3 is fixed. We will notify you when the new public build of dotConnect for Oracle is available for download.

Re: ORA-01036 and ORA-00920 with bitwise AND operator

Posted: Mon 02 Mar 2020 16:20
by Shalex
dotConnect for Oracle v9.11.951 is released: viewtopic.php?f=1&t=39884.