Linq Query incorrect when using & operator

Description

Example:

This linq-query sometimes results in:

This behaviour is not deterministic. After a application-restart the query works fine.

Hbm

Environment

None

Activity

Alex Zaytsev 
August 10, 2021 at 9:07 PM

Moved here:

Martin Hölbling 
July 7, 2016 at 11:49 AM

The Exception is:
could not execute query
[ select typechange0_.ID as col_0_0_, typechange0_.Name as col_1_0_, typechange0_.ShortName as col_2_0_, typechange0_.[Order] as col_3_0_, typechange0_.UpdateMode as col_4_0_, typechange0_.Usage as col_5_0_, typechange0_.Restrictions as col_6_0_ from TypeChangeReason typechange0_ where (typechange0_.Mandator & @p0) != 0 and (typechange0_.DeletedDate is null) and typechange0_.Usagetypechange0_.Usage & @p1=@p2 ]
Name2 - Value:8 Name3 - Value:8
[SQL: select typechange0_.ID as col_0_0_, typechange0_.Name as col_1_0_, typechange0_.ShortName as col_2_0_, typechange0_.[Order] as col_3_0_, typechange0_.UpdateMode as col_4_0_, typechange0_.Usage as col_5_0_, typechange0_.Restrictions as col_6_0_ from TypeChangeReason typechange0_ where (typechange0_.Mandator & @p0) != 0 and (typechange0_.DeletedDate is null) and typechange0_.Usagetypechange0_.Usage & @p1=@p2]

Duplicate

Details

Assignee

Reporter

Components

Affects versions

Priority

Who's Looking?

Open Who's Looking?
Created July 7, 2016 at 11:47 AM
Updated August 10, 2021 at 9:08 PM
Resolved August 10, 2021 at 9:08 PM
Who's Looking?