Re: Proposed new libpq API

From: Chris Bitmead <chrisb(at)nimrod(dot)itg(dot)telstra(dot)com(dot)au>
To: "pgsql-hackers(at)postgreSQL(dot)org" <pgsql-hackers(at)postgreSQL(dot)org>, pgsql-oo(at)postgreSQL(dot)org, Chris Bitmead <chris(at)bitmead(dot)com>
Subject: Re: Proposed new libpq API
Date: 2000-07-05 07:31:18
Message-ID: 3962E446.2792DF31@nimrod.itg.telecom.com.au
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
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.

In response to

Browse pgsql-hackers by date

  From Date Subject
Next Message Hannu Krosing 2000-07-05 08:05:18 Re: Proposed new libpq API
Previous Message Chris Bitmead 2000-07-05 07:20:47 Proposed new libpq API