Received: from localhost (postgresql.org [64.49.215.8]) by postgresql.org (Postfix) with ESMTP id 294F7476558 for ; Wed, 23 Oct 2002 09:46:49 -0400 (EDT) Received: from serwer.skawsoft.com.pl (serwer.skawsoft.com.pl [213.25.37.66]) by postgresql.org (Postfix) with ESMTP id 2B251476528 for ; Wed, 23 Oct 2002 09:46:48 -0400 (EDT) Received: from klaster.net (pj106.krakow.cvx.ppp.tpnet.pl [217.99.210.106]) by serwer.skawsoft.com.pl (Postfix) with ESMTP id 212F22B2B9; Wed, 23 Oct 2002 15:40:17 +0200 (CEST) Message-ID: <3DB6A9B8.6070007@klaster.net> Date: Wed, 23 Oct 2002 15:52:56 +0200 From: Tomasz Myrta User-Agent: Mozilla/5.0 (Windows; U; Win 9x 4.90; PL; rv:1.1) Gecko/20020826 X-Accept-Language: pl, en-us, en MIME-Version: 1.0 To: Nicholas Barthelemy Cc: pgsql-sql@postgresql.org Subject: Re: 7.2 time format funtion issue References: <3DB56DE2.9070609@adjuvantmedical.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: by AMaViS new-20020517 X-Archive-Number: 200210/292 X-Sequence-Number: 10009 > 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