http://qs321.pair.com?node_id=11122319


in reply to Re: DBIx::Class : match integer-cols having specific bits set
in thread DBIx::Class : match integer-cols having specific bits set

Brother 1nickt thanks for the hint and the pointers to SQL::Abstract which helped me to put together the literal SQL queries below:

my %where = ( '(roles &2) => \'(roles &4)', );

and

my %where = ( 0 => {'<' => \"(roles & 4)"}, );

or

my %where = ( '(roles & 4)' => {'>' => '0'}, );

bw, bliako