Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group