From: | Oliver Jowett <oliver(at)opencloud(dot)com> |
---|---|
To: | Gil G <gm12345678(at)gmail(dot)com> |
Cc: | pgsql-jdbc(at)postgresql(dot)org |
Subject: | Re: TimestampUtils.loadCalendar failes for interval type |
Date: | 2005-09-11 23:13:17 |
Message-ID: | 4324BA0D.6060006@opencloud.com |
Views: | Raw Message | Whole Thread | Download mbox | Resend email |
Thread: | |
Lists: | pgsql-jdbc |
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
From | Date | Subject | |
---|---|---|---|
Next Message | Oliver Jowett | 2005-09-12 02:00:59 | Re: XADataSource implementation |
Previous Message | Dave Cramer | 2005-09-11 23:11:49 | Re: TimestampUtils.loadCalendar failes for interval type |