| От | Neil Conway |
|---|---|
| Тема | date -> timestamp casting bug (integer datetimes) |
| Дата | |
| Msg-id | 1178422826.18303.131.camel@goldbach обсуждение исходный текст |
| Ответы |
Re: date -> timestamp casting bug (integer datetimes)
Re: date -> timestamp casting bug (integer datetimes) |
| Список | pgsql-bugs |
When integer datetimes are in use, the legal range of the "date" type
actually exceeds that of the "timestamp" type. However, the cast from
date => timestamp fails to take this into account:
postgres=# select '01-01-5874896'::date::timestamp;
timestamp
----------------------------
29355-07-05 15:41:44.48384
(1 row)
The cast works correctly with FP-based datetimes.
Should be simple to fix, but I won't have the free cycles to do it for a
little while, so if anyone wants to take a shot at it in the meanwhile,
they are more than welcome...
-Neil
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера