Re: Throwing NumberFormat exception for preparedStatement.setObjcet()

From: Dave Cramer <pg(at)fastcrypt(dot)com>
To: Srinivas Gunnam <srinivas_gunnam(at)persistent(dot)co(dot)in>
Cc: "pgsql-jdbc(at)postgresql(dot)org" <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: Throwing NumberFormat exception for preparedStatement.setObjcet()
Date: 2010-01-11 20:15:28
Message-ID: 491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

On Mon, Jan 11, 2010 at 7:58 AM, Srinivas Gunnam
<srinivas_gunnam(at)persistent(dot)co(dot)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

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Srinivas Gunnam 2010-01-12 05:40:33 Re: Throwing NumberFormat exception for preparedStatement.setObjcet()
Previous Message dmp 2010-01-11 20:13:53 Re: Throwing NumberFormat exception for preparedStatement.setObjcet()