From: Oliver Jowett <oliver@opencloud.com>
To: Gil G <gm12345678@gmail.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: TimestampUtils.loadCalendar failes for interval type
Date: Mon, 12 Sep 2005 11:13:17 +1200
Message-ID: <4324BA0D.6060006@opencloud.com> (raw)
In-Reply-To: <5a59b8db0509080426438d4370@mail.gmail.com>
References: <5a59b8db0509080426438d4370@mail.gmail.com>
Gil G wrote:
> This is important since, generic products such as Hibernate that work
> over different jdbc drivers, refer to the interval data type as a
> java.sql.Timestamp object and call getTimestamp(int) method on the
> resultset to get the instance.
AFAIK there's no standard mapping for 'interval' in JDBC so I don't
think you should be too suprised that trying to represent it as a
Timestamp fails.
However your email implies that there are other JDBC drivers that do
represent an interval as a Timestamp. Can you provide some examples of
drivers that do this, and details of how code such as Hibernate is
expecting the interval to be represented? Maybe we can do an appropriate
conversion as a nonstandard extension.
-O
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: oliver@opencloud.com, gm12345678@gmail.com
Subject: Re: TimestampUtils.loadCalendar failes for interval type
In-Reply-To: <4324BA0D.6060006@opencloud.com>
References: <5a59b8db0509080426438d4370@mail.gmail.com> <4324BA0D.6060006@opencloud.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