Re: Allow disabling folding of unquoted identifiers to lowercase

Поиск
Список
Период
Сортировка
От John R Pierce
Тема Re: Allow disabling folding of unquoted identifiers to lowercase
Дата
Msg-id af621a1b-00bd-0457-2f04-f7223537b3a0@hogranch.com
обсуждение исходный текст
Ответ на Allow disabling folding of unquoted identifiers to lowercase  (Evgeny Morozov <evgeny.morozov+list+pgsql@shift-technology.com>)
Ответы Re: Allow disabling folding of unquoted identifiers to lowercase  (John McKown <john.archie.mckown@gmail.com>)
Список pgsql-general
On 4/29/2016 10:21 AM, Evgeny Morozov wrote:
It would be great if Postgres had a server setting that allowed the automatic folding of identifiers to lowercase to be disabled, so that camel case identifiers could be used without having to quote every single identifier, i.e.

SELECT MyColumn FROM MyTable ORDER BY MyColumn

instead of

SELECT "MyColumn" FROM "MyTable" ORDER BY "MyColumn"



I suspect this would be painful for the parser, unless you also enforced that all SQL keywords were in a specific case (all lower would be the minimal impact to the code).   otherwise the parser would have to lower() every token to check to see if its a keyword, but if not, revert it to its original case.



-- 
john r pierce, recycling bits in santa cruz

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

Предыдущее
От: Evgeny Morozov
Дата:
Сообщение: Allow disabling folding of unquoted identifiers to lowercase
Следующее
От: Adrian Klaver
Дата:
Сообщение: Re: Primary Keys