Re: Throwing NumberFormat exception for preparedStatement.setObjcet() - Mailing list pgsql-jdbc

From Dave Cramer
Subject Re: Throwing NumberFormat exception for preparedStatement.setObjcet()
Date
Msg-id 491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com
Whole thread Raw
In response to Throwing NumberFormat exception for preparedStatement.setObjcet()  (Srinivas Gunnam <srinivas_gunnam@persistent.co.in>)
Responses Re: Throwing NumberFormat exception for preparedStatement.setObjcet()  (Srinivas Gunnam <srinivas_gunnam@persistent.co.in>)
List pgsql-jdbc
On Mon, Jan 11, 2010 at 7:58 AM, Srinivas Gunnam
<srinivas_gunnam@persistent.co.in> wrote:
> Hi,
>
> In our application we are using the Postgres Sql 8.3.3 and jdbc driver is
> postgresql-8.0-310.jdbc3.


Do you mean 8.0-310 ? if so why not use a more recent driver ?

>
>
>
> When I am trying to set the value for id(int) like as follows throwing
> exception.
>
> ps.setObject(1, inputData,columntype);
>
> where inputdate value is 2

what is the columnType value ?

Dave

pgsql-jdbc by date:

Previous
From: Srinivas Gunnam
Date:
Subject: Throwing NumberFormat exception for preparedStatement.setObjcet()
Next
From: dmp
Date:
Subject: Re: Throwing NumberFormat exception for preparedStatement.setObjcet()