pg.ddx.io  pgsql-sql@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Tomasz Myrta <jasiek@klaster.net>
To: Nicholas Barthelemy <nbarth@adjuvantmedical.com>
Cc: pgsql-sql@postgresql.org
Subject: Re: 7.2 time format funtion issue
Date: Wed, 23 Oct 2002 15:52:56 +0200
Message-ID: <3DB6A9B8.6070007@klaster.net> (raw)
References: <3DB56DE2.9070609@adjuvantmedical.com>

> 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




view thread (2+ messages)

Message-ID: <3DB6A9B8.6070007@klaster.net>
Permalink:  ../3DB6A9B8.6070007@klaster.net/
Also on:    postgresql.org/message-id/3DB6A9B8.6070007@klaster.net

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients using the --to and --cc options:
  reply via email

  To: pgsql-sql@postgresql.org
  Cc: jasiek@klaster.net, nbarth@adjuvantmedical.com
  Subject: Re: 7.2 time format funtion issue
  In-Reply-To: <3DB6A9B8.6070007@klaster.net>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox