Re: [PATCHES] Escape handling in strings

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [PATCHES] Escape handling in strings
Дата
Msg-id 15299.1118979234@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: [PATCHES] Escape handling in strings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Ответы Re: [PATCHES] Escape handling in strings  (Bruce Momjian <pgman@candle.pha.pa.us>)
Re: [PATCHES] Escape handling in strings  (Michael Glaesemann <grzm@myrealbox.com>)
Список pgsql-hackers
Bruce Momjian <pgman@candle.pha.pa.us> writes:
> OK, the current patch warns about two things, \' with one message, and
> any backslash in a non-E string with a different message.

Those are two very different things.  \' is easy to get around and
there's no very good reason not to send '' instead.  But avoiding all
use of \anything is impossible (think \\) so a non-suppressable warning
for that would be quite unacceptable IMHO.  I think it's much too early
to be throwing a warning for \anything anyway.  8.2 or so, OK, but not
in this cycle.
        regards, tom lane


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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: Autovacuum in the backend
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: [PATCHES] Escape handling in strings