pg.ddx.io pgsql-jdbc@postgresql.org mailing list archivehelp / color / mirror / Atom feed
ResultSet.getFetchsize() 2+ messages / 2 participants [nested] [flat]
* ResultSet.getFetchsize() @ 2004-09-20 09:34 Jens Hillert <hillertj@gmx.de> 2004-09-20 09:45 ` Re: ResultSet.getFetchsize() Kris Jurka <books@ejurka.com> 0 siblings, 1 reply; 2+ messages in thread From: Jens Hillert @ 2004-09-20 09:34 UTC (permalink / raw) To: pgsql-jdbc 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. In JDBC3 driver for 7.4 build 215, there is always returned 0. Does anyone know the reason for this? Or is there another way to get the number of results of a query? Greetings Jens. -- NEU: GMX ProMail mit bestem Virenschutz http://www.gmx.net/de/go/mail +++ Empfehlung der Redaktion +++ Internet Professionell 10/04 +++ ^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: ResultSet.getFetchsize() 2004-09-20 09:34 ResultSet.getFetchsize() Jens Hillert <hillertj@gmx.de> @ 2004-09-20 09:45 ` Kris Jurka <books@ejurka.com> 0 siblings, 0 replies; 2+ messages in thread From: Kris Jurka @ 2004-09-20 09:45 UTC (permalink / raw) To: Jens Hillert <hillertj@gmx.de>; +Cc: 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 ^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2004-09-20 09:45 UTC | newest] Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed) -- links below jump to the message on this page -- 2004-09-20 09:34 ResultSet.getFetchsize() Jens Hillert <hillertj@gmx.de> 2004-09-20 09:45 ` Kris Jurka <books@ejurka.com>
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