interval and timestamp change?

Поиск
Список
Период
Сортировка
От postgresql
Тема interval and timestamp change?
Дата
Msg-id 200201262346.g0QNkXl96573@postgresql.org
обсуждение исходный текст
Ответы Re: interval and timestamp change?  (Chris Ruprecht <chrup999@yahoo.com>)
Список pgsql-sql
this works on  postgresql 7.1.3.

SELECT interval(('1/30/02  12:30 pm'::timestamp) - 'now');

However, it is failing on the current beta. I have to change it to:

SELECT ('1/30/02  12:30 pm'::timestamp) - 'now';

Is this change to make PG more ANSI compliant? Was this 
documented? It  took me a bit of hacking to find the correct syntax in 
7.2.

Ted




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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: LIMIT Optimization
Следующее
От: chester c young
Дата:
Сообщение: update syntax