pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Sathyajith G <sathyajith@inbox.com>
To: pgsql-jdbc@postgresql.org
Subject: exception while upgrading driver
Date: Tue, 7 Jun 2005 10:41:11 -0800
Message-ID: <9648E4D3482.000004D1sathyajith@inbox.com> (raw)

Hi
   i have the following code running without any errors with postgres 7.4.2.
driver.



String qry="select 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 ";  // order by num desc";

try{
  ResultSet rs=Data.getResultSet(qry);
  while(rs.next())
   {
        try{
            acrmax=Integer.parseInt(rs.getString(1))+1;
           }catch(NumberFormatException ne){acrmax=0;}
   }
  }
  catch(SQLException ex) { System.err.println("for rs1 err
"+ex.getMessage());
        }



I changed the driver to postgres 8.0.1.  Strangely now, the above code gives
the exception "The resultset is closed". Please help.

regards,

Sathya


view thread (5+ messages)  latest in thread

Message-ID: <9648E4D3482.000004D1sathyajith@inbox.com>
Permalink:  ../9648E4D3482.000004D1sathyajith@inbox.com/
Also on:    postgresql.org/message-id/9648E4D3482.000004D1sathyajith@inbox.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: sathyajith@inbox.com
  Subject: Re: exception while upgrading driver
  In-Reply-To: <9648E4D3482.000004D1sathyajith@inbox.com>
  References: <9648E4D3482.000004D1sathyajith@inbox.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

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