Re: a question about dates and timestamp

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: a question about dates and timestamp
Дата
Msg-id 8145.965316044@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: a question about dates and timestamp  (Ange Michel POZZO <poange@technologist.com>)
Список pgsql-sql
Ange Michel POZZO <poange@technologist.com> writes:
> select datetime(abstime( floor (value) ));
> select datetime(abstime( int4 (value) ));
> select datetime(abstime( numeric_int4 (value) ));

> in all case :
> ERROR:  pg_atoi: error in "952969611.000000": can't parse ".000000" 

That was fixed in January.  Update to 7.0 and it'll work fine.
You might be able to make it work in 6.5 like this:abstime(int4(float8(numeric)))
        regards, tom lane


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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: What is happening?
Следующее
От: Dana.Reed@clinicaldatacare.com
Дата:
Сообщение: SQL (table transposition)