| От | Tom Lane |
|---|---|
| Тема | Re: [PATCHES] Interval month, week -> day |
| Дата | |
| Msg-id | 26490.1157069563@sss.pgh.pa.us обсуждение |
| Ответы |
Re: [PATCHES] Interval month, week -> day
|
| Список | pgsql-hackers |
Michael Glaesemann <grzm@seespotcode.net> writes:
> I came across some behavior that seems counterintuitive to me:
> test=# select '1.5 mon'::interval;
> interval
> -----------------
> 1 mon 360:00:00
> (1 row)
> With the time/day/month interval struct introduced in 8.1, I'd expect
> this to return '1 mon 15 days'. The reason is that the DecodeInterval
> converts fractional months to time directly, rather than cascading
> first to days.
I agree that this seems like an oversight in the original
months/days/seconds patch, rather than behavior we want to keep.
But is DecodeInterval the only place with the problem? My recollection
is that there's a certain amount of redundancy in the datetime code ...
regards, tom lane
В списке pgsql-hackers по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера