Received: from magus.postgresql.org (magus.postgresql.org [87.238.57.229]) by mail.postgresql.org (Postfix) with ESMTP id 65BB5862DB3 for ; Wed, 8 Feb 2012 15:06:19 -0400 (AST) Received: from mahout.postgresql.org ([98.129.198.123]) by magus.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RvCqM-0002J6-Jj for pgsql-bugs@postgresql.org; Wed, 08 Feb 2012 19:06:18 +0000 Received: from [204.145.124.246] (helo=wrigleys.postgresql.org) by mahout.postgresql.org with esmtp (Exim 4.72) (envelope-from ) id 1RvCq8-0002jx-2F for pgsql-bugs@postgresql.org; Wed, 08 Feb 2012 19:06:01 +0000 Received: from www-data by wrigleys.postgresql.org with local (Exim 4.72) (envelope-from ) id 1RvCq7-0003Fi-RK for pgsql-bugs@postgresql.org; Wed, 08 Feb 2012 19:05:59 +0000 Date: Wed, 08 Feb 2012 19:05:59 +0000 Message-Id: Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Subject: BUG #6445: PreparedStatement.setObject(1,java.util.String) To: pgsql-bugs@postgresql.org From: rajesh4.t@tcs.com X-Pg-Spam-Score: -1.9 (-) X-Archive-Number: 201202/79 X-Sequence-Number: 32422 The following bug has been logged on the website: Bug reference: 6445 Logged by: Rajesh Email address: rajesh4.t@tcs.com PostgreSQL version: 8.4.3 Operating system: Windows XP Description: = I have a table in PostgreSQL database CREATE TABLE newtest ( id numeric(6), name character varying(120), email character varying(120) ) I am using PreparedStatement so that i can insert data into newtest table INSERT INTO NewTest (ID,NAME,EMAIL ) values (?,?,? ) Actual query fired -INSERT INTO NewTest (ID,NAME,EMAIL ) values ('1','Rajesh ','rajesh4.t@abs.com' ) code for prepared statement try{ pstatement=3Dconn.prepareStatement(insertQuery); for(int k=3D1;k