absolute value fro timestamps

Поиск
Список
Период
Сортировка
От Claudio Lapidus
Тема absolute value fro timestamps
Дата
Msg-id BAY7-DAV3760mJWEsBk00004fce@hotmail.com
обсуждение исходный текст
Ответы Re: absolute value fro timestamps  (Bruce Momjian <pgman@candle.pha.pa.us>)
Список pgsql-general
Hello

Evidently is possible to have a negative time interval:

clapidus=> select interval '-1';
 interval
-----------
 -01:00:00

However, there seems to be no provision to get the absolute value in such
case:

clapidus=> select @ interval '-1';
ERROR:  operator does not exist: @ interval
HINT:  No operator matches the given name and argument type(s). You may need
to add explicit typecasts.

clapidus=> select abs(interval '-1');
ERROR:  function abs(interval) does not exist
HINT:  No function matches the given name and argument types. You may need
to add explicit typecasts.

What did I miss this time?

PGversion is 7.4b2

cl.


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

Предыдущее
От: Ron Johnson
Дата:
Сообщение: Re: delivering database stand-alone
Следующее
От: Ron Johnson
Дата:
Сообщение: Re: About GPL and proprietary software