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

Поиск
Список
Период
Сортировка
От Thomas Lockhart
Тема Re: Bug #696: timestamp function does not work?
Дата
Msg-id 3D174CBD.85484773@fourpalms.org
обсуждение исходный текст
Ответ на Bug #696: timestamp function does not work?  (pgsql-bugs@postgresql.org)
Список 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 по дате отправления:

Предыдущее
От: "Alfredo"
Дата:
Сообщение: Please, I want you to unsuscribe me , thanks
Следующее
От: Tom Lane
Дата:
Сообщение: Re: Bug #696: timestamp function does not work?