Re: Bug #696: timestamp function does not work?

From: Thomas Lockhart <lockhart(at)fourpalms(dot)org>
To: sandor(dot)vig(at)audi(dot)hu, pgsql-bugs(at)postgresql(dot)org
Subject: Re: Bug #696: timestamp function does not work?
Date: 2002-06-24 16:45:49
Message-ID: 3D174CBD.85484773@fourpalms.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Browse pgsql-bugs by date

  From Date Subject
Next Message Tom Lane 2002-06-24 20:56:53 Re: Bug #696: timestamp function does not work?
Previous Message Alfredo 2002-06-24 16:33:38 Please, I want you to unsuscribe me , thanks