Re: [GENERAL] Functions and Parentheses

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: [GENERAL] Functions and Parentheses
Дата
Msg-id 611.1507325635@sss.pgh.pa.us
обсуждение исходный текст
Ответ на [GENERAL] Functions and Parentheses  ("Igal @ Lucee.org" <igal@lucee.org>)
Ответы Re: [GENERAL] Functions and Parentheses
Список pgsql-general
"Igal @ Lucee.org" <igal@lucee.org> writes:
> How come `current_date` has no parenthesis but `clock_timestamp()` does?

Because the SQL standard says that CURRENT_DATE doesn't have parentheses.
It is a function by any other measure, though.

(AFAICT, the SQL committee is unacquainted with any principles of
programming language syntax design that emerged later than the COBOL
era.  Their capacity to invent new and non-orthogonal syntax for every
new feature seems boundless.)
        regards, tom lane


-- 
Sent via pgsql-general mailing list (pgsql-general@postgresql.org)
To make changes to your subscription:
http://www.postgresql.org/mailpref/pgsql-general

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

Предыдущее
От: "David G. Johnston"
Дата:
Сообщение: Re: [GENERAL] Functions and Parentheses
Следующее
От: "Joshua D. Drake"
Дата:
Сообщение: Re: [GENERAL] Functions and Parentheses