Re: BUG #5535: Backslash in condition for LIKE statement is not seen - Mailing list pgsql-bugs

From Jeff Benjamin
Subject Re: BUG #5535: Backslash in condition for LIKE statement is not seen
Date
Msg-id 6090B22B-3310-4DA0-B3AD-B8B92CB74D74@ivertex.com
Whole thread Raw
In response to Re: BUG #5535: Backslash in condition for LIKE statement is not seen  ("Kevin Grittner" <Kevin.Grittner@wicourts.gov>)
List pgsql-bugs
Thanks, that works!

On Jul 1, 2010, at 1:34 PM, Kevin Grittner wrote:

> "Jeff Benjamin" <jeff@ivertex.com> wrote:
>
>> Seems one cannot use a backslash character in a LIKE condition.
>
> By default that has special meaning as an escape character.
>
> Try this:
>
> select * from test where pattern like E'\\w%' escape '#';
>
> or this:
>
> select * from test where pattern like E'\\\\w%';
>
> -Kevin

pgsql-bugs by date:

Previous
From: "Kevin Grittner"
Date:
Subject: Re: BUG #5535: Backslash in condition for LIKE statement is not seen
Next
From: ola sergatchov
Date:
Subject: Re: BUG #5531: REGEXP_ REPLACE causes connection drop