Re: Trailing comma support in SELECT statements

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: Trailing comma support in SELECT statements
Дата
Msg-id 24510.1412353129@sss.pgh.pa.us
обсуждение исходный текст
Ответ на Trailing comma support in SELECT statements  (Bogdan Pilch <bogdan@matfyz.cz>)
Список pgsql-hackers
Bogdan Pilch <bogdan@matfyz.cz> writes:
> I have created a small patch to postgres source (in particular the
> psql part of it) that accepts trailing comma at the end of list in
> SELECT statement.

This doesn't seem to me to be a remarkably good idea.  What's the
difference between this and accepting random misspellings of SELECT,
allowing mismatched parentheses in expressions, etc etc?  It's important
in a computer language to be able to catch typos.

If we were going to be lax about trailing commas, the SELECT list
would hardly be the only candidate, or even the first candidate,
for being lax that way.  But I don't want to go there.
        regards, tom lane



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

Предыдущее
От: Heikki Linnakangas
Дата:
Сообщение: Re: Last Commitfest patches waiting review
Следующее
От: Bruce Momjian
Дата:
Сообщение: Re: Trailing comma support in SELECT statements