Re: PQexecParams with binary resultFormat vs BINARY CURSOR

From: Mateusz Łoskot <mateusz(at)loskot(dot)net>
To: Dmitriy Igrishin <dmitigr(at)gmail(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: PQexecParams with binary resultFormat vs BINARY CURSOR
Date: 2011-11-12 00:21:54
Message-ID: CABUeae9g8trtqj+XYze2ZPOOn0+EMvwSFBw5wKfaT7c0Jmjrow@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-general

2011/11/11 Dmitriy Igrishin <dmitigr(at)gmail(dot)com>:
> 2011/11/11 Mateusz Łoskot <mateusz(at)loskot(dot)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

In response to

Browse pgsql-general by date

  From Date Subject
Next Message Bborie Park 2011-11-12 00:39:01 Determine a function's volatility in C
Previous Message Thom Brown 2011-11-12 00:08:35 Re: VACUUM touching file but not updating relation