Re: LIKE predicate and '\' character - Mailing list pgsql-hackers

From Tom Lane
Subject Re: LIKE predicate and '\' character
Date
Msg-id 5173.1005153696@sss.pgh.pa.us
Whole thread Raw
In response to LIKE predicate and '\' character  ("Andy Hallam" <ahm@exel.co.uk>)
List pgsql-hackers
"Andy Hallam" <ahm@exel.co.uk> writes:
> BUT, if I use the LIKE predicate I have to escape the escape.
> Now this must be treated as a bug.

It's not a bug, it's the defined behavior of LIKE.  See
http://www.ca.postgresql.org/users-lounge/docs/7.1/postgres/functions-matching.html#FUNCTIONS-LIKE

You might find it more convenient to select a different escape
character for LIKE.
        regards, tom lane


pgsql-hackers by date:

Previous
From: Tom Lane
Date:
Subject: Re: Status of 7.2
Next
From: Stephan Szabo
Date:
Subject: Re: LIKE predicate and '\' character