Re: BUG #2598: Columns named R are not accessible - although R is not a keyword

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: BUG #2598: Columns named R are not accessible - although R is not a keyword
Дата
Msg-id 28682.1156955876@sss.pgh.pa.us
обсуждение исходный текст
Ответ на BUG #2598: Columns named R are not accessible - although R is not a keyword  ("Andreas Langegger" <al@jku.at>)
Список pgsql-bugs
Andreas Langegger <al@jku.at> writes:
> Well, I also tried your simple regression test and it worked. The more
> I'm wondering why this does not:

> CREATE TABLE sunspots
> ...
>   "R" int2,

"R" with double quotes represents capital R, but when you write R
without quotes in a query, it's implicitly downcased.  See
http://www.postgresql.org/docs/8.1/static/sql-syntax.html#SQL-SYNTAX-IDENTIFIERS

If you spell it like that in the table definition then you'll need
to use quotes every time you refer to the column, too.

            regards, tom lane

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

Предыдущее
От: Tom Lane
Дата:
Сообщение: Re: BUG #2598: Columns named R are not accessible - although R is not a keyword
Следующее
От: Charlie Savage
Дата:
Сообщение: Re: BUG #2594: Gin Indexes cause server to crash on Windows