Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
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 cooling their heels in the Monastery: (14)
As of 2016-12-05 14:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    On a regular basis, I'm most likely to spy upon:













    Results (85 votes). Check out past polls.