| От | 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 по дате отправления:
Сайт использует файлы cookie для корректной работы и повышения удобства. Нажимая кнопку «Принять» или продолжая пользоваться сайтом, вы соглашаетесь на их использование в соответствии с Политикой в отношении обработки cookie ООО «ППГ», в том числе на передачу данных из файлов cookie сторонним статистическим и рекламным службам. Вы можете управлять настройками cookie через параметры вашего браузера