tags:

views:

324

answers:

2

Hello,

i will use a query like this in ejb ql:

Select * from whe A&1;

But i have the following error:

line 1, column 171: unexpected char [&].

How can i use this operator to check the bits in a row?

A: 

use BIT_AND function

dfa
its a group by function and i need this in the where clause..... :(
the check also the if function
dfa
A: 

You need to add a sql function to the dialect, see https://forum.hibernate.org/viewtopic.php?t=940978&highlight=bitwise .

Alex Martelli