Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl Monk, Perl Meditation
 
PerlMonks  

Re^2: DBIx::Class : match integer-cols having specific bits set

by bliako (Monsignor)
on Sep 29, 2020 at 05:44 UTC ( [id://11122319]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://11122319]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others romping around the Monastery: (6)
As of 2024-04-24 08:58 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found