Redefining LIKE operator

From: Pablo Sajnn <psajnin(at)bejerman(dot)com(dot)ar>
To: pgsql-general(at)postgresql(dot)org
Subject: Redefining LIKE operator
Date: 2003-03-14 12:06:29
Message-ID: 306CDF5EF8BDD511AD350050BF1790C1DC70CA@POST
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

Hi,

I need the LIKE operator to be case insensitive.
What I did is to redefine the ~~ so it behaves as the ~~* operator:

DROP OPERATOR ~~ (name, text);
CREATE OPERATOR ~~ ( leftarg=name, rightarg=text, procedure=nameiclike,
negator='!~~');

The operator is created, but when I execute a query, LIKE is still being
case-sensitive.
Am I doing anything wrong?
Is it not possible to redefine this operator?
I am using the 7.2.2 version.

Thanks in advance

Pablo Sajnin
psajnin(at)bejerman(dot)com(dot)ar

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Larry Rosenman 2003-03-14 12:16:06 Re: Redefining LIKE operator
Previous Message Marcin Owsiany 2003-03-14 11:47:56 Re: ~*, case insensitiveness and national chars