Re: return value for PQbinaryTuples

From: "Daniel Verite" <daniel(at)manitou-mail(dot)org>
To: pgsql-general(at)postgresql(dot)org
Subject: Re: return value for PQbinaryTuples
Date: 2009-12-02 17:28:01
Message-ID: c5c4131e-e947-4895-9112-c4e11a0ebb68@mm
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message Devrim GÜNDÜZ 2009-12-02 17:44:13 Re: Auto Vaccum
Previous Message Tom Lane 2009-12-02 17:26:03 Re: Build universal binary on Mac OS X 10.6?