X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 212E89FA5D3 for ; Wed, 7 Jun 2006 09:31:09 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 05901-03 for ; Wed, 7 Jun 2006 09:30:59 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 247989F9EF3 for ; Wed, 7 Jun 2006 09:30:57 -0300 (ADT) Received: from 221x253x225x162.ap221.ftth.ucom.ne.jp ([221.253.225.162] helo=[192.168.1.171]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1FnxBS-00049g-Rf; Thu, 08 Jun 2006 00:30:51 +1200 Message-ID: <4486C6F1.7070408@opencloud.com> Date: Wed, 07 Jun 2006 21:30:41 +0900 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.4 (Windows/20060516) MIME-Version: 1.0 To: "surabhi.ahuja" CC: pgsql-jdbc@postgresql.org Subject: Re: date value not geting inserted properly References: <8626C1B7EB748940BCDD7596134632BE398687@jal.iiitb.ac.in> In-Reply-To: <8626C1B7EB748940BCDD7596134632BE398687@jal.iiitb.ac.in> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200606/22 X-Sequence-Number: 15302 surabhi.ahuja wrote: > stmt.setObject(i + 1, (tagV.value), > ((TypeAttrib) (primaryKeyMap_.get(tMap.get(temp)))).dataType); > > can u please tell as to what should the dataType be for date, isnt it > 91- integer? java.sql.Types.DATE is 91, which should be correct if you're inserting a bare date (with no time part). What is the type and value of the "tagV.value" object? What driver version and server version are you using? What is the query you are executing? Can you provide a selfcontained testcase showing the problem? You haven't really given us enough info to go on here. -O