Re: timestamp arithmetic (a possible bug?) - Mailing list pgsql-bugs

From Stephan Szabo
Subject Re: timestamp arithmetic (a possible bug?)
Date
Msg-id 20040702073330.V65501@megazone.bigpanda.com
Whole thread Raw
In response to Re: timestamp arithmetic (a possible bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Responses Re: timestamp arithmetic (a possible bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
List pgsql-bugs
On Fri, 2 Jul 2004, Tom Lane wrote:

> Stephan Szabo <sszabo@megazone.bigpanda.com> writes:
> > On Fri, 2 Jul 2004, Tom Lane wrote:
> >> (There is a timestamp + interval operator, so you could make it work by
> >> flipping around the outer addition.)
>
> > Should we be providing an interval + timestamp operator as well since it
> > looks like the spec implies both orderings should work?
>
> If you see spec support for it, then yes ... where do you read that
> exactly?

SQL92 (draft) 4.5.3 Operators involving datetimes and intervals (the table
appears to be the same in SQL99 4.7.3)

The list given there is:
 datetime - datetime -> interval
 datetime +,- interval -> datetime
 interval + datetime -> datetime
 interval +,- interval -> interval
 interval *,/ numeric -> interval
 numeric * interval -> interval

pgsql-bugs by date:

Previous
From: Ilir Gashi
Date:
Subject: Re: Grant Update (Possible bug)?
Next
From: Bruno Wolff III
Date:
Subject: Re: Possible bug?