Beefy Boxes and Bandwidth Generously Provided by pair Networks
Keep It Simple, Stupid
 
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?
[stevieb]: I have got ready everything in a stable manner to go forward with a full-blown "Raspberry Pi with Perl" series, and at the same time "Automated testing locally for everything" series. A year it took. A year I've been waiting to do this.

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2017-06-29 01:32 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    How many monitors do you use while coding?















    Results (653 votes). Check out past polls.