Re: return value for PQbinaryTuples - Mailing list pgsql-general

From Daniel Verite
Subject Re: return value for PQbinaryTuples
Date
Msg-id c5c4131e-e947-4895-9112-c4e11a0ebb68@mm
Whole thread Raw
In response to Re: return value for PQbinaryTuples  (Merlin Moncure <mmoncure@gmail.com>)
Responses Re: return value for PQbinaryTuples  (Merlin Moncure <mmoncure@gmail.com>)
List pgsql-general
    Merlin Moncure wrote:

> PQbinaryTuples is basically going to return whatever you passed into
> resultformat when you executed the query (in the case of PQexec, it's
> going to be 1 always).

You mean 0 (i.e. text, not binary). And with an exception on PQexec("FETCH
c") when c is a binary cursor. In this case the result is binary and
PQbinaryTuples() reflects that.

Best regards,
--
Daniel
PostgreSQL-powered mail user agent and storage: http://www.manitou-mail.org

pgsql-general by date:

Previous
From: Tom Lane
Date:
Subject: Re: Build universal binary on Mac OS X 10.6?
Next
From: Devrim GÜNDÜZ
Date:
Subject: Re: Auto Vaccum