Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
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 avoiding work at the Monastery: (14)
As of 2015-07-30 12:53 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (271 votes), past polls