Re: PQexecParams

Поиск
Список
Период
Сортировка
От Merlin Moncure
Тема Re: PQexecParams
Дата
Msg-id 6EE64EF3AB31D5448D0007DD34EEB3412A7640@Herge.rcsinc.local
обсуждение исходный текст
Ответ на PQexecParams  (Christopher Kings-Lynne <chriskl@familyhealth.com.au>)
Ответы Re: PQexecParams  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-hackers
> >>Will PQexecParams automatically escape bytea data as it goes in, or
must
> >>one run it through PQescapeBytea first?
> >
> > Neither.  The data does not need escaping (assuming you pass it as a
> > parameter, of course.)
>
> Even binary data?  ie. You could upload a binary string straight into
> PQexecParams with no octal conversion?

Well, what it means you do not have to escape data at the protocol level
you don't have to be concerned about formatting the query string.
However the server still may still need to interpret the data for
storage...meaning for the bytea type at least you have to do octal
encoding (at least that's what I do, I'd like nothing better than to be
corrected on this point).

Merlin


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

Предыдущее
От: David Pradier
Дата:
Сообщение: Re: Erratic error message "ERROR: column "id_compte" does
Следующее
От: Richard Huxton
Дата:
Сообщение: Re: Erratic error message "ERROR: column "id_compte" does