Re: PQescapeBytea & PQunescapeBytea

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: PQescapeBytea & PQunescapeBytea
Дата
Msg-id 18248.1115217027@sss.pgh.pa.us
обсуждение исходный текст
Ответ на PQescapeBytea & PQunescapeBytea  ("Frost, Mr. Michael (contractor)" <frost@nrlmry.navy.mil>)
Список pgsql-interfaces
"Frost, Mr. Michael (contractor)" <frost@nrlmry.navy.mil> writes:
> [ PQescapeBytea & PQunescapeBytea are not inverses ]

They're not supposed to be.  PQescapeBytea creates something that can be
inserted into a SQL command as a string literal.  PQunescapeBytea
deconstructs something that has been returned as a SELECT result.
There are two different levels of backslashing involved.

This doesn't directly answer your original problem, but I think we'll
need to see more of your code to figure out what you were doing wrong.
        regards, tom lane


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

Предыдущее
От: Bruno Wolff III
Дата:
Сообщение: Re: calculated identity field in views, again...
Следующее
От: Greg Stark
Дата:
Сообщение: Re: calculated identity field in views, again...