Re: ResultSet.getFetchsize()

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: ResultSet.getFetchsize()
Дата
Msg-id Pine.BSO.4.56.0409200442370.947@leary.csoft.net
обсуждение исходный текст
Ответ на ResultSet.getFetchsize()  ("Jens Hillert" <hillertj@gmx.de>)
Список pgsql-jdbc

On Mon, 20 Sep 2004, Jens Hillert wrote:

> Hello,
>
> 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.

Kris Jurka


В списке pgsql-jdbc по дате отправления:

Предыдущее
От: "Jens Hillert"
Дата:
Сообщение: ResultSet.getFetchsize()
Следующее
От: "John R Pierce"
Дата:
Сообщение: Re: "Idle in Transaction" revisited.