Re: 7.2 time format funtion issue - Mailing list pgsql-sql

From Tomasz Myrta
Subject Re: 7.2 time format funtion issue
Date
Msg-id 3DB6A9B8.6070007@klaster.net
Whole thread Raw
In response to 7.2 time format funtion issue  (Nicholas Barthelemy <nbarth@adjuvantmedical.com>)
List 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 by date:

Previous
From: Stephan Szabo
Date:
Subject: Re: sub-select with aggregate
Next
From: Tomasz Myrta
Date:
Subject: Re: sub-select with aggregate