pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Dave Cramer <pg@fastcrypt.com>
To: Srinivas Gunnam <srinivas_gunnam@persistent.co.in>
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Throwing NumberFormat exception for preparedStatement.setObjcet()
Date: Mon, 11 Jan 2010 15:15:28 -0500
Message-ID: <491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com> (raw)
In-Reply-To: <14B8F27D7CE40C4C9E481B2B845C2E0D724677A2@EXCHANGE.persistent.co.in>
References: <14B8F27D7CE40C4C9E481B2B845C2E0D724677A2@EXCHANGE.persistent.co.in>

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



view thread (7+ messages)  latest in thread

Message-ID: <491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com>
Permalink:  ../491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com/
Also on:    postgresql.org/message-id/491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.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: pg@fastcrypt.com, srinivas_gunnam@persistent.co.in
  Subject: Re: Throwing NumberFormat exception for preparedStatement.setObjcet()
  In-Reply-To: <491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.com>
  References: <14B8F27D7CE40C4C9E481B2B845C2E0D724677A2@EXCHANGE.persistent.co.in> <491f66a51001111215l5ef09181j288d4d583bf007e4@mail.gmail.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