Re: Syntax for converting double to a timestamp

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема Re: Syntax for converting double to a timestamp
Дата
Msg-id 200609040125.50298.peter_e@gmx.net
обсуждение исходный текст
Ответ на Syntax for converting double to a timestamp  ("Frank Church" <voipfc@googlemail.com>)
Ответы Re: Syntax for converting double to a timestamp
Re: Syntax for converting double to a timestamp
Список pgsql-general
Frank Church wrote:
> error: cannot cast tupe double precision to timestamp without time
> zone
>
> What is the right syntax?

It's not clear what the meaning of a double precision as a timestamp
would be.  How about you make that explicit:

"timestamp" * interval '1 second' + timestamp '1900-01-01 00:00:00'

or whatever you had in mind.

--
Peter Eisentraut
http://developer.postgresql.org/~petere/

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

Предыдущее
От: Michael Glaesemann
Дата:
Сообщение: Re: Syntax for converting double to a timestamp
Следующее
От: Tom Lane
Дата:
Сообщение: Re: compressed protocol