Re: 9.2 timestamp function syntax error

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: 9.2 timestamp function syntax error
Дата
Msg-id 7277.1362495154@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Re: 9.2 timestamp function syntax error  (Adrian Klaver <adrian.klaver@gmail.com>)
Ответы Re: 9.2 timestamp function syntax error  (Guy Rouillier <guy.rouillier@gmail.com>)
Список pgsql-general
Adrian Klaver <adrian.klaver@gmail.com> writes:
> This does not work:

> test=> select timestamp(now()::timestampz);
> ERROR:  syntax error at or near "now"

timestamp(something) is a type name.  Per the comment in gram.y:

 * The type names appearing here are not usable as function names
 * because they can be followed by '(' in typename productions, which
 * looks too much like a function call for an LR(1) parser.

            regards, tom lane


В списке pgsql-general по дате отправления:

Предыдущее
От: Shaun Thomas
Дата:
Сообщение: Why does slony use a cursor? Anyone know?
Следующее
От: Maciek Sakrejda
Дата:
Сообщение: Re: [HACKERS] Floating point error