Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: DBIx::Class case insensitve substring search.

by duelafn (Priest)
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


Comment on Re: DBIx::Class case insensitve substring search.
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others romping around the Monastery: (14)
As of 2014-12-18 15:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (58 votes), past polls