Strange results with interval types computations

Поиск
Список
Период
Сортировка
От pgsql-bugs@postgresql.org
Тема Strange results with interval types computations
Дата
Msg-id 200101141658.f0EGwDt99575@hub.org
обсуждение исходный текст
Ответы Re: Strange results with interval types computations  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
Laurent HERVE (laurent_herve@infonie.fr) reports a bug with a severity of 3
The lower the number the more severe it is.

Short Description
Strange results with interval types computations

Long Description
Look at those two queries :

ez_money=> select '10/01/2000'::date+'1 month'::interval;
?column?
----------------------
2000-10-31 23:00:00+01
(1 row)

ez_money=> select '09/01/2000'::date+'1 month'::interval;
?column?
----------------------
2000-10-01 00:00:00+02
(1 row)

Strange that 10/01/2000 + 1 month does not give 11/01/2000 !

Sample Code


No file was uploaded with this report

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Database corruption in RH 6.2/prepackaged PG
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Strange results with interval types computations