Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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


pgsql-interfaces by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group