From: Michael GUIARD <michael@nestor-tech.com>
To: pgsql-hackers-win32@postgresql.org
Subject: LIBPQ - FETCH INTO
Date: Thu, 28 Jul 2005 15:55:42 +0200
Message-ID: <017101c5937c$0f0f35d0$027ba8c0@NSTMike> (raw)
Hi !
first, thank you Magnus for your help :)
the use of cursors and fetch commands works fine for me.
Is it possible to know the result length (rows count) before any retreive ?
Another thing, now I'd like to retreive the results, using FETCH command, into a structure. For example I ask for selecting 2 fields, instead of using PQgetvalue(res, i, j), I'd like to retreive all fields in a C structure.
I saw the FETCH INTO command, I tried to use it with the PQexecParams but I did not succeeded in.
Is it possible ? if yes how ?
thanks
Mike
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 from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-hackers-win32@postgresql.org
Cc: michael@nestor-tech.com
Subject: Re: LIBPQ - FETCH INTO
In-Reply-To: <017101c5937c$0f0f35d0$027ba8c0@NSTMike>
References: <017101c5937c$0f0f35d0$027ba8c0@NSTMike>
* 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