From: Stephan Szabo <sszabo@megazone23.bigpanda.com>
To: Tomas Lehuta <lharp@aurius.sk>
Cc: pgsql-hackers@postgresql.org
Cc: pgsql-general@postgresql.org
Cc: pgsql-sql@postgresql.org
Subject: Re: timestamp parse error
Date: Fri, 20 Sep 2002 07:38:25 -0700 (PDT)
Message-ID: <20020920073512.E40130-100000@megazone23.bigpanda.com> (raw)
In-Reply-To: <amf4ce$2kle$1@news.hub.org>
On Fri, 20 Sep 2002, Tomas Lehuta wrote:
> Hello!
>
> i'm using PostgreSQL 7.2.1 and got strange parse errors..
> could somebody tell me what's wrong with this timestamp query example?
>
> PostgreSQL said: ERROR: parser: parse error at or near "date"
> Your query:
>
> select timestamp(date '1998-02-24', time '23:07')
>
> example is from PostgreSQL help and certainly worked in previous versions of
> pgsql.. but in 7.2.1 it does not. had anything changed and not been updated
> in pgsql manuals or is it a bug?
Presumably it's a manual example that didn't get changed. Timestamp(...)
is now a specifier for the type with a given precision. You can use
"timestamp"(date '1998-02-24', time '23:07') or datetime math (probably
something like date '1998-02-24' + time '23:07' and possibly a cast)
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: sszabo@megazone23.bigpanda.com, lharp@aurius.sk, pgsql-hackers@postgresql.org, pgsql-general@postgresql.org
Subject: Re: timestamp parse error
In-Reply-To: <20020920073512.E40130-100000@megazone23.bigpanda.com>
* 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