Re: Backslash Bug in ARE Class-Shorthand Escape?

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Backslash Bug in ARE Class-Shorthand Escape?
Дата
Msg-id 200312060921.35631.peter_e@gmx.net
обсуждение исходный текст
Ответ на Backslash Bug in ARE Class-Shorthand Escape?  (david@fetter.org (David Fetter))
Список 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.
"""

В списке pgsql-bugs по дате отправления:

Предыдущее
От: Joe Conway
Дата:
Сообщение: Re: Backslash Bug in ARE Class-Shorthand Escape?
Следующее
От: Joe Conway
Дата:
Сообщение: Re: Backslash Bug in ARE Class-Shorthand Escape?