ORA-01036 and ORA-00920 with bitwise AND operator
Posted: Wed 22 Jan 2020 11:47
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 :
I get the Devart.Data.Oracle.OracleException: 'ORA-01036: illegal variable name/number'
When I remove the variable :
I get the Devart.Data.Oracle.OracleException: 'ORA-00920: invalid relational operator'
What am I doing wrong?
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();
When I remove the variable :
Code: Select all
var thirdParties = dbContext.ThirdParties.Where(tp => (tp.Kind & 1) > 0).ToList();
What am I doing wrong?