From: Alessandro Baldoni <abaldoni@csr.unibo.it>
To: pgsql-interfaces@postgresql.org
Subject: Binary cursors and arrays
Date: Thu, 28 Jan 1999 23:39:59 +0100
Message-ID: <36B0E73F.84E42B89@csr.unibo.it> (raw)
Dear friends,
I need to access the elements of a float8 array retrieved through a
binary cursor.
I first do PQexec (conn, "DECLARE B BINARY CURSOR FOR SELECT f
FROM foo"), then
FETCH ALL IN f. In a loop, I do
foo = (ArrayType *) PQgetvalue (res, i, 0);
I know that foo has 1 dimension and 9 elements, but ARR_DATA_PTR doesn't
work.
Can someone help me?
Please reply to abaldoni@csr.unibo.it
Thanks
Alessandro
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients using the --to and --cc options:
reply via email
To: pgsql-interfaces@postgresql.org
Cc: abaldoni@csr.unibo.it
Subject: Re: Binary cursors and arrays
In-Reply-To: <36B0E73F.84E42B89@csr.unibo.it>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox