X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 9D6055281A for ; Thu, 30 Jun 2005 01:23:23 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 84924-10 for ; Thu, 30 Jun 2005 04:23:14 +0000 (GMT) Received: from info.midascomm.com (unknown [203.196.171.91]) by svr1.postgresql.org (Postfix) with ESMTP id ED9EA52800 for ; Thu, 30 Jun 2005 01:23:12 -0300 (ADT) Received: from midascomm.com ([192.168.13.93]) by info.midascomm.com (8.12.10/8.12.10) with ESMTP id j5U4MHPE002476; Thu, 30 Jun 2005 09:52:18 +0530 Message-ID: <42C3791D.8060602@midascomm.com> Date: Thu, 30 Jun 2005 10:16:21 +0530 From: sarves User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.4) Gecko/20030624 Netscape/7.1 X-Accept-Language: en-us, en MIME-Version: 1.0 To: Oliver Jowett , Roland Walter Cc: pgsql-jdbc@postgresql.org Subject: Re: using postgresql-8.0-311.jdbc2.jar References: <42C25016.1090808@midascomm.com> <42C2B1BE.9080802@mosaic-ag.com> <42C2B632.9020909@opencloud.com> In-Reply-To: <42C2B632.9020909@opencloud.com> Content-Type: multipart/alternative; boundary="------------080707080502010300000206" X-midascomm.com-MailScanner-Information: Please contact System Administrator for more information X-midascomm.com-MailScanner: Found to be clean X-MailScanner-From: sharvesh@midascomm.com X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.468 tagged_above=0 required=5 tests=AWL, HTML_40_50, HTML_MESSAGE, HTML_TITLE_EMPTY X-Spam-Level: X-Archive-Number: 200506/175 X-Sequence-Number: 13137 This is a multi-part message in MIME format. --------------080707080502010300000206 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Dear Oliver & Roland, You guys are rite. I got rid fo the dependency on getFetchSize() and my program works fine now. Thanks for the timely help. sarvesh Oliver Jowett wrote: >Roland Walter wrote: > > > >>As far as I know, getFetchSize() will return 0 in all cases. >>It is not possible to use this for getting the count of >>selected rows. Remove the if (num>0) below. >> >> > >Yes, this'll be the cause: older driver versions incorrectly returned >the resultset size from getFetchSize(), but newer drivers follow the >spec and return whatever you set via setFetchSize(), default 0. > >-O > > > --------------080707080502010300000206 Content-Type: text/html; charset=us-ascii Content-Transfer-Encoding: 7bit Dear Oliver & Roland,

          You guys are rite. I got rid fo the dependency on getFetchSize() and my program works fine now. Thanks for the timely help.

sarvesh

Oliver Jowett wrote:
Roland Walter wrote:

  
As far as I know, getFetchSize() will return 0 in all cases.
It is not possible to use this for getting the count of
selected rows. Remove the if (num>0) below.
    

Yes, this'll be the cause: older driver versions incorrectly returned
the resultset size from getFetchSize(), but newer drivers follow the
spec and return whatever you set via setFetchSize(), default 0.

-O

  
--------------080707080502010300000206--