Re: libpq, PQExecParams and the inserting of binary data

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: libpq, PQExecParams and the inserting of binary data
Дата
Msg-id 12005.1117825882@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: libpq, PQExecParams and the inserting of binary data  (David Hinkle <drachs@gmail.com>)
Список pgsql-interfaces
David Hinkle <drachs@gmail.com> writes:
> ...  That example doesn't show you how to use
> any binary parameters... All the parameters are text, it only shows
> you how get binary results.  I think it's a huge oversight myself.

Duh, you are right.  Will fix that.

> I could probably figure out how to use the parameters as binary, but I
> have no idea what to do with the OID field.

If you didn't need it for the text version, you won't need it for the
binary version.  The type OID is only needed if the query is such that
the backend can't determine the type of the parameter symbol from
context.  Whether you send the parameter value as text or binary has
nada to do with that.
        regards, tom lane


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

Предыдущее
От: David Hinkle
Дата:
Сообщение: Re: libpq, PQExecParams and the inserting of binary data
Следующее
От: "Daniel Verite"
Дата:
Сообщение: Re: libpq, PQExecParams and the inserting of binary data