Re: Unexpected behaviour of encode()

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: Unexpected behaviour of encode()
Дата
Msg-id CAHyXU0w3_2_os9LgEyZv+V=Owi6bSXKh+Yg7LUpnM8FEyTfHCg@mail.gmail.com
обсуждение исходный текст
Ответ на Re: Unexpected behaviour of encode()  (Bill Moran <wmoran@potentialtech.com>)
Список pgsql-general
On Tue, Mar 26, 2013 at 1:36 PM, Bill Moran <wmoran@potentialtech.com> wrote:
> I get "can't" which is what I'd expect.  I would then expect
> encode to escape the ' somehow.

nope -- encode/escape doesn't escape single quotes. it's not designed
to produce output that can be fed directly back into the database (at
least, not without escaping).  yes, it (escape format) is pretty
terrible.

merlin


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

Предыдущее
От: Bill Moran
Дата:
Сообщение: Re: Unexpected behaviour of encode()
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Unexpected behaviour of encode()