On Mon, 20 Sep 2004, Jens Hillert wrote:
> in previous PostgreSQL JDBC drivers (e.g. 7.3), the Method
> ResultSet.getFetchsize() returned the number of results, which were loaded
> from the database in a query.
This was a complete implementation artifact. The 7.4+ series now has the
ability to stream results from the server and doesn't have any idea how
many results it will receive until it gets them all, so it can't tell you.
> Or is there another way to get the number of results of a query?
You could try ResultSet.moveLast() and then getRow() to determine the
number of results.
In response to
pgsql-jdbc by date
|Next:||From: John R Pierce||Date: 2004-09-20 15:52:29|
|Subject: Re: "Idle in Transaction" revisited.|
|Previous:||From: Jens Hillert||Date: 2004-09-20 09:34:22|