From: 雨森郷太郎 <gotaroamenomori@gmail.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Bug? report : PreparedStatement.setObject(java.util.Date) don't work
Date: Sat, 10 Nov 2007 14:24:23 +0900
Message-ID: <3a69fa320711092124hf008c72p471af0d968729c11@mail.gmail.com> (raw)
In-Reply-To: <473508F3.3050309@opencloud.com>
References: <3a69fa320711090848n7d51dc57td54f23e0754679cb@mail.gmail.com>
<473508F3.3050309@opencloud.com>
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
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: gotaroamenomori@gmail.com
Subject: Re: Bug? report : PreparedStatement.setObject(java.util.Date) don't work
In-Reply-To: <3a69fa320711092124hf008c72p471af0d968729c11@mail.gmail.com>
References: <3a69fa320711090848n7d51dc57td54f23e0754679cb@mail.gmail.com> <473508F3.3050309@opencloud.com> <3a69fa320711092124hf008c72p471af0d968729c11@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