Re: 7.2 time format funtion issue

From: Tomasz Myrta <jasiek(at)klaster(dot)net>
To: Nicholas Barthelemy <nbarth(at)adjuvantmedical(dot)com>
Cc: pgsql-sql(at)postgresql(dot)org
Subject: Re: 7.2 time format funtion issue
Date: 2002-10-23 13:52:56
Message-ID: 3DB6A9B8.6070007@klaster.net
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-sql by date

  From Date Subject
Next Message Tomasz Myrta 2002-10-23 14:02:58 Re: sub-select with aggregate
Previous Message Stephan Szabo 2002-10-23 13:02:49 Re: sub-select with aggregate