| От | Tom Lane |
|---|---|
| Тема | Re: BUG #1993: Adding/subtracting negative time intervals |
| Дата | |
| Msg-id | 9337.1130213038@sss.pgh.pa.us обсуждение |
| Ответ на | Re: BUG #1993: Adding/subtracting negative time intervals (Michael Fuhr <mike@fuhr.org>) |
| Ответы |
Re: BUG #1993: Adding/subtracting negative time intervals
|
| Список | pgsql-bugs |
Michael Fuhr <mike@fuhr.org> writes:
> Should 24 hours be the same as 1 * 24 hours?
Yes, I would think so.
> The latter appears to be equal to 1 day, not 24 hours:
Urgh. I think this is a serious thinko in Michael Glaesemann's rewrite
of interval_mul. The application of interval_justify_hours is utterly
wrong ... and in fact, I'm not sure it should be applied in any of the
three functions that currently call it. I don't mind the user deciding
he'd like to flatten '24 hours' to '1 day' but the basic arithmetic
functions for intervals have no business doing that.
Comments?
regards, tom lane
В списке pgsql-bugs по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера