Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: DBIx::Class case insensitve substring search.

by duelafn (Vicar)
on May 25, 2011 at 20:26 UTC ( #906703=note: print w/replies, xml ) Need Help??


in reply to DBIx::Class case insensitve substring search.

Your result from google searching works for me. Try again? (code as you have it is a syntax error!)

my $searched_rs = $all_items->search({ 'LOWER(me.name)' => { 'LIKE' => '%example%' } });

You can also trace the DBIx::Class queries using DBIC_TRACE

DBIC_TRACE=1 perl /tmp/test.pl

Good Day,
    Dean

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://906703]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others avoiding work at the Monastery: (9)
As of 2017-11-20 23:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (294 votes). Check out past polls.

    Notices?