Re: [PATCHES] Escape handling in strings

Поиск
Список
Период
Сортировка
От Andrew Dunstan
Тема Re: [PATCHES] Escape handling in strings
Дата
Msg-id 1293.24.211.165.134.1118970184.squirrel@www.dunslane.net
обсуждение исходный текст
Ответ на 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>)
Список pgsql-hackers
Bruce Momjian said:

> OK, the current patch warns about two things, \' with one message, and
> any backslash in a non-E string with a different message.  The \'
> message can easily be avoided in clients even in 8.0 by using '', but
> for E'', there is no way to prepare an application before upgrading to
> 8.1 because 8.0 doesn't have E''.  (We can add E'' in a subrelease, but
> what percentage of users are going to upgrade to that?)  This is why I
> think we need to add a GUC to allow the warning to be turned off.  To
> be clear, the GUC is to control the warning, not the query behavior.
>
> We could go with the second warning only in 8.2, but that seems too
> confusing --- we should deal with the escape issue in two stages,
> rather than three.
>

So you don't agree with Tom's suggestion to implement E'' a full cycle
before removing backslash processing in standard strings? Or have I
misunderstood again?

cheers

andrew




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

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