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 345E452939 for ; Tue, 7 Jun 2005 15:41:21 -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 33866-07 for ; Tue, 7 Jun 2005 18:41:15 +0000 (GMT) Received: from WM14.inbox.com (wm14.inbox.com [208.50.6.14]) by svr1.postgresql.org (Postfix) with SMTP id 8CBC65292D for ; Tue, 7 Jun 2005 15:41:13 -0300 (ADT) Received: from inbox.com (127.0.0.1:25) by inbox.com with [InBox.Com ESMTP Server] id <506070018453.WM14> for from ; Tue, 7 Jun 2005 10:41:13 AM -0800 Mime-Version: 1.0 Date: Tue, 7 Jun 2005 10:41:11 -0800 Message-ID: <9648E4D3482.000004D1sathyajith@inbox.com> From: Sathyajith G Subject: exception while upgrading driver To: pgsql-jdbc@postgresql.org X-Mailer: IBISIT WebMail Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: quoted-printable X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0 tagged_above=0 required=5 tests= X-Spam-Level: X-Archive-Number: 200506/22 X-Sequence-Number: 12984 Hi i have the following code running without any errors with postgres 7.4.2. driver. String qry=3D=22select MAX(num) from (select to_number((substr(acr_id,4)),'9999') as num from aircraft where acr_id like 'ACR%' group by acr_id) as num =22; // order by num desc=22; try=7B ResultSet rs=3DData.getResultSet(qry); while(rs.next()) =7B try=7B acrmax=3DInteger.parseInt(rs.getString(1))+1; =7Dcatch(NumberFormatException ne)=7Bacrmax=3D0;=7D =7D =7D catch(SQLException ex) =7B System.err.println(=22for rs1 err =22+ex.getMessage()); =7D I changed the driver to postgres 8.0.1. Strangely now, the above code gives the exception =22The resultset is closed=22. Please help. regards, Sathya=