| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера