Search Postgresql Archives

Re: PQexecParams with binary resultFormat vs BINARY CURSOR

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2011/11/11 Dmitriy Igrishin <dmitigr@xxxxxxxxx>:
> 2011/11/11 Mateusz Łoskot <mateusz@xxxxxxxxxx>
>>
>> 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

-- 
Sent via pgsql-general mailing list (pgsql-general@xxxxxxxxxxxxxx)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general



[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Index of Archives]     [Postgresql Jobs]     [Postgresql Admin]     [Postgresql Performance]     [Linux Clusters]     [PHP Home]     [PHP on Windows]     [Kernel Newbies]     [PHP Classes]     [PHP Books]     [PHP Databases]     [Postgresql & PHP]     [Yosemite]
  Powered by Linux