Re: BUG #4398: Backslashes get escaped despite of backslash_quote=off

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #4398: Backslashes get escaped despite of backslash_quote=off
Дата
Msg-id 23710.1220543502@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #4398: Backslashes get escaped despite of backslash_quote=off  ("Rainer" <rainer@hamburg.ccc.de>)
Ответы Re: BUG #4398: Backslashes get escaped despite of backslash_quote=off  ("Rainer Glueck" <rainer.glueck@netminds.de>)
Список pgsql-bugs
"Rainer" <rainer@hamburg.ccc.de> writes:
> Description:        Backslashes get escaped despite of backslash_quote=off

Aren't you looking for standard_conforming_strings?  backslash_quote is
something else entirely, and doesn't actually do anything at all when
backslash escaping is disabled.

> Two questions:
> 1. What I actually want: Shouldn't the second statement work by
> documentation without the escape flag?

No.  standard_conforming_strings has nothing to do with the behavior of
LIKE (nor does backslash_quote).  They just control the initial parsing
of SQL string literals.

> 2. What I do not understand: Why does the fourth statement return a result
> as backslash_quote is off?

It looks like a perfectly good match to me.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #4397: crash in tab-complete.c
Следующее
От: "Denis Mitin"
Дата:
Сообщение: Re: BUG #4389: FATAL: could not reattach to shared memory(key=1804, addr=018E0000): 487