Re: timestamp arithmetic (a possible bug?)
От | Stephan Szabo |
---|---|
Тема | Re: timestamp arithmetic (a possible bug?) |
Дата | |
Msg-id | 20040702073330.V65501@megazone.bigpanda.com обсуждение исходный текст |
Ответ на | Re: timestamp arithmetic (a possible bug?) (Tom Lane <tgl@sss.pgh.pa.us>) |
Ответы |
Re: timestamp arithmetic (a possible bug?)
|
Список | 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 по дате отправления: