Re: JDBC3 and 7.4.1 - Mailing list pgsql-jdbc

From Ranjeet Kapur
Subject Re: JDBC3 and 7.4.1
Date
Msg-id 20040220202100.9930.qmail@web40302.mail.yahoo.com
Whole thread Raw
In response to Re: JDBC3 and 7.4.1  (Kris Jurka <books@ejurka.com>)
Responses Re: JDBC3 and 7.4.1  (Oliver Jowett <oliver@opencloud.com>)
List pgsql-jdbc
Thanks, I just did a few experiments and  found the same thing, that getFetchSize() was returning 0. Is there anything else I could use to achieve the same result, namely how many rows in the select ?? I am very new to DB programming that�s why I probably misread the documentation on getFetchSize().
 
Ranjeet


Kris Jurka <books@ejurka.com> wrote:


On Fri, 20 Feb 2004, Ranjeet Kapur wrote:

> Hi,
>
> ResultSet rs = select_stmnt.executeQuery(query);
> System.out.println("Select Size = " + rs.getFetchSize());
> num_entries = rs.getFetchSize();
>

getFetchSize does not return the number of result rows. It did prior to
7.4, but that was just an implementation artifact and should not have been
relied on.

Kris Jurka



---------------------------(end of broadcast)---------------------------
TIP 4: Don't 'kill -9' the postmaster


Do you Yahoo!?
Yahoo! Mail SpamGuard - Read only the mail you want.

pgsql-jdbc by date:

Previous
From: Kris Jurka
Date:
Subject: Re: JDBC3 and 7.4.1
Next
From: Sean Shanny
Date:
Subject: How do I ensure same session over multiple statements??