Received: from localhost (unknown [200.46.204.183]) by postgresql.org (Postfix) with ESMTP id 957479FCC53 for ; Sat, 10 Nov 2007 02:27:46 -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 60298-01-3 for ; Sat, 10 Nov 2007 02:03:54 -0400 (AST) Received: from rv-out-0910.google.com (rv-out-0910.google.com [209.85.198.185]) by postgresql.org (Postfix) with ESMTP id A30BA9FCBB3 for ; Sat, 10 Nov 2007 01:24:47 -0400 (AST) Received: by rv-out-0910.google.com with SMTP id l15so592445rvb for ; Fri, 09 Nov 2007 21:24:23 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; bh=c2vEEzt/Viv7fgqTKTsU+uK7hZB9ZvCiwcoRYPEhBhk=; b=jCInylSNBLiqnYEmnKXc0WvkJAhjVTPr8czMo5AUNH22g5yPslx6Iyc1wOOiMeeE++z9dC9K27V/+XQZKDxsx3JXauDokTk1Bh+0FV8XLSLUEKhMX8I0iR/BuuyDSOC7EdbqJJykN76rgEuNmbcRR72TPseuez8q8tYlBmu+egQ= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:to:subject:in-reply-to:mime-version:content-type:references; b=JwA4HpGsh0iIkK/XifVRHpnKigCsXcL0XLV/WrzagCvOjQMmguy4UydmsTsy0ug9VjPia0KTq3GpoNc3h3+PoeYPzsb94mD/eQEUqJBYQdkpUqKBS6ltM/bbKuZAv+/u/NfRFhs9DkAWum6CTEgbqNgAGgE/3Cn3rQeU6gcdhr0= Received: by 10.142.158.17 with SMTP id g17mr417622wfe.1194672263257; Fri, 09 Nov 2007 21:24:23 -0800 (PST) Received: by 10.142.132.3 with HTTP; Fri, 9 Nov 2007 21:24:23 -0800 (PST) Message-ID: <3a69fa320711092124hf008c72p471af0d968729c11@mail.gmail.com> Date: Sat, 10 Nov 2007 14:24:23 +0900 From: "=?ISO-2022-JP?B?GyRCMSs/OTY/QkBPOhsoQg==?=" To: pgsql-jdbc@postgresql.org Subject: Re: Bug? report : PreparedStatement.setObject(java.util.Date) don't work In-Reply-To: <473508F3.3050309@opencloud.com> MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_32399_12826109.1194672263248" References: <3a69fa320711090848n7d51dc57td54f23e0754679cb@mail.gmail.com> <473508F3.3050309@opencloud.com> X-Virus-Scanned: Maia Mailguard 1.0.1 X-Archive-Number: 200711/44 X-Sequence-Number: 17799 ------=_Part_32399_12826109.1194672263248 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you for reply. >Try using java.sql.Date instead of java.util.Date, there should be a >mapping for that. It should work, I agree. However, Is there reason to refrain from supporting java.util.Date ? Originaly, I developed my Java Web application on postgres version7.4. On the environment, java.util.Date to java.sql.Types#DATE mapping worked well via JDBC ver7.4, like http://jdbc.postgresql.org/download/pg74.216.jdbc3.jar I can't see sources of the version, but I guess it has mapping for java.util.Date. Recently, I upgraded my Postgres DBMS to ver.8.2, and replaced JDBC to "8.2 Build 506" then faced problem. Now, I'm using source compiled Dirver with modification I reported. I hope java.util.Date mapping to be original specification. How's this? Gotaro AMENOMORi ------=_Part_32399_12826109.1194672263248 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Content-Disposition: inline Thank you for reply.

>Try using java.sql.Date instead of java.util.Date, there should be a
>mapping for that.

It should work, I agree.

However, Is there reason to refrain from supporting java.util.Date ?

Originaly, I developed my Java Web application on postgres version7.4.
On the environment, java.util.Date to java.sql.Types#DATE mapping
worked well via JDBC ver7.4, like
http://jdbc.postgresql.org/download/pg74.216.jdbc3.jar
I can't see sources of the version, but I guess it has mapping for
java.util.Date.

Recently, I upgraded my Postgres DBMS to ver.8.2, and replaced
JDBC to "8.2 Build 506" then faced problem.

Now, I'm using source compiled Dirver with modification I reported.
I hope java.util.Date mapping to be original specification.

How's this?

Gotaro AMENOMORi

------=_Part_32399_12826109.1194672263248--