Re: Proposed new libpq API
Chris <chrisb@nimrod.itg.telstra.com.au>
From: Chris Bitmead <chrisb@nimrod.itg.telstra.com.au>
To: "pgsql-hackers@postgreSQL.org" <pgsql-hackers@postgreSQL.org>, pgsql-oo@postgreSQL.org, Chris Bitmead <chris@bitmead.com>
Date: 2000-07-05T07:31:18Z
Lists: pgsql-hackers
Follow up: Where it says...
PGresult *res = PQexec("select * from foo");
for (int i = 0; i < PQntuples(res); i++) {
printf("%s\n", PQgetValue(res, i, 0);
PQflush(res) // NEW NEW
}
It should say...
PGresult *res = PQexec("select * from foo");
for (int i = 0; i < PQntuples(res); i++) {
printf("%s\n", PQgetValue(res, i, 0);
PQflush(res, -1) // NEW NEW
}
The -1 argument signifying "flush everything". A specific number
signifying "flush everything below this threshold", where the threshold
is a tuple number.