Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds - Mailing list pgsql-bugs

From Daniele Varrazzo
Subject Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds
Date
Msg-id CA+mi_8bbtcvG6n9gm7EAnh5KNb=nJMjqg8prn=DhzLh0RX5Acw@mail.gmail.com
Whole thread Raw
In response to Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds  (Ryan Kelly <rpkelly22@gmail.com>)
Responses Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds
List pgsql-bugs
On Mon, Jan 7, 2013 at 5:19 PM, Ryan Kelly <rpkelly22@gmail.com> wrote:

> '1 month'::interval is the same as '30 days'::interval.

No, it's not.

# select '2012-07-31'::date + '1 month'::interval, '2012-07-31'::date
+ '30 days'::interval;
      ?column?       |      ?column?
---------------------+---------------------
 2012-08-31 00:00:00 | 2012-08-30 00:00:00

-- Daniele

pgsql-bugs by date:

Previous
From: Ryan Kelly
Date:
Subject: Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds
Next
From: Ryan Kelly
Date:
Subject: Re: BUG #7797: datetime + '1 month'::interval is going outside of a month's bounds