Re: Searching case insensitive

[prev] [thread] [next] [Date index for 2005/06/10]

From: Tony Bowden
Subject: Re: Searching case insensitive
Date: 21:35 on 10 Jun 2005
On Fri, Jun 10, 2005 at 11:13:42PM +0200, Wijnand Wiersma wrote:
> > > sub search_ilike { shift->_do_search(ILIKE => @_) }
> Sorry, I forgot to mention. I use Postgres.

I don't think Pg has "ILIKE". Google seems to imply you use ~= so you
probably want:

	sub search_ilike { shift->_do_search("~=" => @_) }

Possibly worth adding either the code or the documentation to
Class::DBI::Pg if so (and certainly to the wiki)

Tony

Searching case insensitive
Wijnand Wiersma 21:07 on 10 Jun 2005

Re: Searching case insensitive
Tony Bowden 21:09 on 10 Jun 2005

Re: Searching case insensitive
Wijnand Wiersma 21:13 on 10 Jun 2005

Re: Searching case insensitive
Tony Bowden 21:35 on 10 Jun 2005

Re: Searching case insensitive
Wijnand Wiersma 21:48 on 10 Jun 2005

Generated at 16:36 on 28 Jul 2005 by mariachi v0.52