Re: timestamp arithmetic (a possible bug?)

Поиск
Список
Период
Сортировка
От Stephan Szabo
Тема Re: timestamp arithmetic (a possible bug?)
Дата
Msg-id 20040702070659.G64673@megazone.bigpanda.com
обсуждение исходный текст
Ответ на Re: timestamp arithmetic (a possible bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Ответы Re: timestamp arithmetic (a possible bug?)  (Tom Lane <tgl@sss.pgh.pa.us>)
Список pgsql-bugs
On Fri, 2 Jul 2004, Tom Lane wrote:

> Ilir Gashi <I.Gashi@city.ac.uk> writes:
> > I saw this behaviour in PostgreSQL 7.2. (Once again, I know this is an old
> > release but I do not have a newer version installed, and I am only using
> > the server for research purposes). If you execute the following statement
>
> > SELECT (CAST('01.01.2004 10:01:00' AS TIMESTAMP) - CAST('01.01.2004
> > 10:00:00' AS TIMESTAMP)) + CAST('01.01.2004 10:00:00' AS TIMESTAMP);
>
> (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?

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: Grant Update (Possible bug)?
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Possible bug?