Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 0764C9F99EB for ; Fri, 9 Nov 2007 21:27:24 -0400 (AST) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.204.183]) (amavisd-maia, port 10024) with ESMTP id 13708-01 for ; Fri, 9 Nov 2007 21:27:16 -0400 (AST) Received: from tremor.opencloud.co.nz (tremor.opencloud.co.nz [131.203.101.230]) by postgresql.org (Postfix) with ESMTP id 6AEBC9F9732 for ; Fri, 9 Nov 2007 21:27:13 -0400 (AST) Received: from 219-88-216-234.jetstream.xtra.co.nz ([219.88.216.234] helo=[10.1.1.3]) by tremor.opencloud.co.nz with esmtpsa (TLS-1.0:DHE_RSA_AES_256_CBC_SHA1:32) (Exim 4.63) (envelope-from ) id 1Iqf7p-0006OS-7d; Sat, 10 Nov 2007 14:27:05 +1300 Message-ID: <473508F3.3050309@opencloud.com> Date: Sat, 10 Nov 2007 14:27:15 +1300 From: Oliver Jowett User-Agent: Thunderbird 2.0.0.6 (Windows/20070728) MIME-Version: 1.0 To: =?UTF-8?B?6Zuo5qOu6YO35aSq6YOO?= CC: pgsql-jdbc@postgresql.org Subject: Re: Bug? report : PreparedStatement.setObject(java.util.Date) don't work References: <3a69fa320711090848n7d51dc57td54f23e0754679cb@mail.gmail.com> In-Reply-To: <3a69fa320711090848n7d51dc57td54f23e0754679cb@mail.gmail.com> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.001 tagged_above=0 required=5 tests=BAYES_50=0.001 X-Spam-Level: X-Archive-Number: 200711/43 X-Sequence-Number: 17798 雨森郷太郎 wrote: > It seemed org.postgresql.jdbc2.AbstractJdbc2Statement#setObject(int, Object) can't > map java.util.Date to java.sql.Types#DATE. Try using java.sql.Date instead of java.util.Date, there should be a mapping for that. -O