Re: 7.2 time format funtion issue

Поиск
Список
Период
Сортировка
От Tomasz Myrta
Тема Re: 7.2 time format funtion issue
Дата
Msg-id 3DB6A9B8.6070007@klaster.net
обсуждение исходный текст
Ответ на 7.2 time format funtion issue  (Nicholas Barthelemy <nbarth@adjuvantmedical.com>)
Список pgsql-sql
> extract(DOW FROM TIMESTAMP TIMESTAMP(a.startdate)) AS "dow",
> ERROR:  parser: parse error at or near "TIMESTAMP"
Try one of these:
extract(dow from cast(a.startdate as timestamp)) as "dow"
extract(dow from a.startdate) as "dow"
extract(dow from a.startdate::timestamp) as "dow"

I remember I had problems when migrating to Postgres 7.2. I don't 
remember why, but I had to convert all "timestamp" to "timestamp without 
time zone". Probably this was because of ZEOS-direct-access components 
for C++ Builder.

Regards,
Tomasz Myrta



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

Предыдущее
От: Stephan Szabo
Дата:
Сообщение: Re: sub-select with aggregate
Следующее
От: Tomasz Myrta
Дата:
Сообщение: Re: sub-select with aggregate