exception while upgrading driver

Поиск
Список
Период
Сортировка
От Sathyajith G
Тема exception while upgrading driver
Дата
Msg-id 9648E4D3482.000004D1sathyajith@inbox.com
обсуждение исходный текст
Ответы Re: exception while upgrading driver  (Kris Jurka <books@ejurka.com>)
Re: exception while upgrading driver  (Oliver Jowett <oliver@opencloud.com>)
Список pgsql-jdbc
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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Mark Lewis
Дата:
Сообщение: Re: DatabaseMetaData and Transactions
Следующее
От:
Дата:
Сообщение: 8.x driver with EJB CMP