Re: Backslash Bug in ARE Class-Shorthand Escape?

From: Peter Eisentraut <peter_e(at)gmx(dot)net>
To: pgsql-bugs(at)postgresql(dot)org
Cc: david(at)fetter(dot)org (David Fetter)
Subject: Re: Backslash Bug in ARE Class-Shorthand Escape?
Date: 2003-12-06 08:21:35
Message-ID: 200312060921.35631.peter_e@gmx.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-bugs

David Fetter wrote:
> Kind people,
>
> I have a little puzzlement. In the first select, I double the
> backslash and return true. In the second, I don't and get false.
> Have I missed something important in the docs?

Yes:

"""
Note: Remember that the backslash (\) already has a special meaning in
PostgreSQL string literals. To write a pattern constant that contains a
backslash, you must write two backslashes in the statement.
"""

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Joe Conway 2003-12-06 08:26:00 Re: Backslash Bug in ARE Class-Shorthand Escape?
Previous Message Joe Conway 2003-12-06 08:15:28 Re: Backslash Bug in ARE Class-Shorthand Escape?