Re: PQexecParams with binary resultFormat vs BINARY CURSOR

Поиск
Список
Период
Сортировка
От Mateusz Łoskot
Тема Re: PQexecParams with binary resultFormat vs BINARY CURSOR
Дата
Msg-id CABUeae9g8trtqj+XYze2ZPOOn0+EMvwSFBw5wKfaT7c0Jmjrow@mail.gmail.com
обсуждение исходный текст
Ответ на Re: PQexecParams with binary resultFormat vs BINARY CURSOR  (Dmitriy Igrishin <dmitigr@gmail.com>)
Список pgsql-general
2011/11/11 Dmitriy Igrishin <dmitigr@gmail.com>:
> 2011/11/11 Mateusz Łoskot <mateusz@loskot.net>
>>
>> Does it mean the protocol automagically switches between text/binary
>> depending on
>> format code (0|1) specified to PQexecParams and friends?
>
> The Bind(F) message contains array with
> the parameter format codes. So, yes, all you need
> is to pass array with format codes to ::PQexecParams
> and libpq will let it go.

Dmitriy,

This is the answer I was looking for. Thanks!

I'm glad I don't have to fiddle with cursors directly.

Best regards,
--
Mateusz Loskot, http://mateusz.loskot.net

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

Предыдущее
От: Thom Brown
Дата:
Сообщение: Re: VACUUM touching file but not updating relation
Следующее
От: Bborie Park
Дата:
Сообщение: Determine a function's volatility in C