Re: TimestampUtils.loadCalendar failes for interval type

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: TimestampUtils.loadCalendar failes for interval type
Дата
Msg-id 4324BA0D.6060006@opencloud.com
обсуждение исходный текст
Ответ на TimestampUtils.loadCalendar failes for interval type  (Gil G <gm12345678@gmail.com>)
Список 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

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: TimestampUtils.loadCalendar failes for interval type
Следующее
От: Oliver Jowett
Дата:
Сообщение: Re: XADataSource implementation