ONLY with parentheses

Поиск
Список
Период
Сортировка
От Peter Eisentraut
Тема ONLY with parentheses
Дата
Msg-id 496600E1.9000706@gmx.net
обсуждение исходный текст
Ответы Re: ONLY with parentheses  (Alvaro Herrera <alvherre@commandprompt.com>)
Re: ONLY with parentheses  (Cédric Villemain <cedric.villemain@dalibo.com>)
Список pgsql-hackers
While working on TRUNCATE with ONLY, I said to myself, hmm, when writing

TRUNCATE ONLY a, b

it might be a bit confusing whether the ONLY refers to a or both a and 
b.  Then I noticed that the SQL standard requires parentheses, like

TRUNCATE ONLY (a), b

which is clearer.  While we support that in gram.y, I don't see it 
anywhere in the documentation.

Should we document this and emphasize it as having more clarity?


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

Предыдущее
От: Peter Eisentraut
Дата:
Сообщение: Re: about truncate
Следующее
От: "Hitoshi Harada"
Дата:
Сообщение: Re: Sample of user-define window function and other things