Received: from zefiro.csr.unibo.it (zefiro.csr.unibo.it [137.204.72.2]) by hub.org (8.9.2/8.9.1) with SMTP id HAA43587 for ; Thu, 28 Jan 1999 07:45:35 -0500 (EST) (envelope-from abaldoni@csr.unibo.it) Received: from bias_o2.csr.unibo.it by zefiro.csr.unibo.it (5.65v3.2/1.1.10.5/18Mar97-0937AM) id AA27692; Thu, 28 Jan 1999 14:53:53 +0100 Sender: abaldoni@csr.unibo.it Message-Id: <36B0E73F.84E42B89@csr.unibo.it> Date: Thu, 28 Jan 1999 23:39:59 +0100 From: Alessandro Baldoni X-Mailer: Mozilla 4.5 [en] (X11; I; IRIX 6.3 IP32) X-Accept-Language: en Mime-Version: 1.0 To: pgsql-interfaces@postgresql.org Subject: Binary cursors and arrays Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit 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