Re: Bug #696: timestamp function does not work? - Mailing list pgsql-bugs

From Thomas Lockhart
Subject Re: Bug #696: timestamp function does not work?
Date
Msg-id 3D174CBD.85484773@fourpalms.org
Whole thread Raw
In response to Bug #696: timestamp function does not work?  (pgsql-bugs@postgresql.org)
List pgsql-bugs
>   timestamp(current_date, current_time)
> does work under 7.1 but under 7.2 there is an parser error!

Please check the release notes and the SQL standard for why you can not
call a function timestamp() directly; the syntax is now reserved for
specifying a data type, not a function call.

For this particular case, you should be using the SQL-standard
CURRENT_TIMESTAMP.

You can convert date, time to timestamp by casting date to timestamp and
then adding the time.

                    - Thomas

pgsql-bugs by date:

Previous
From: "Alfredo"
Date:
Subject: Please, I want you to unsuscribe me , thanks
Next
From: Tom Lane
Date:
Subject: Re: Bug #696: timestamp function does not work?