Binary cursors and arrays

From: Alessandro Baldoni <abaldoni(at)csr(dot)unibo(dot)it>
To: pgsql-interfaces(at)postgresql(dot)org
Subject: Binary cursors and arrays
Date: 1999-01-28 22:39:59
Message-ID: 36B0E73F.84E42B89@csr.unibo.it
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-interfaces

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(at)csr(dot)unibo(dot)it

Thanks
Alessandro

Browse pgsql-interfaces by date

  From Date Subject
Next Message Reto Gmuer 1999-01-28 23:34:04 Re: pgsql-interfaces-digest V1 #208
Previous Message D'Arcy J.M. Cain 1999-01-28 22:20:23 Re: [INTERFACES] Python Interface