Re: regclass error reports improperly downcased

Поиск
Список
Период
Сортировка
От Tom Lane
Тема Re: regclass error reports improperly downcased
Дата
Msg-id 8369.1383871304@sss.pgh.pa.us
обсуждение исходный текст
Ответ на regclass error reports improperly downcased  (Jim Nasby <jnasby@enova.com>)
Ответы Re: regclass error reports improperly downcased  (Jim Nasby <jnasby@enova.com>)
Список pgsql-hackers
Jim Nasby <jnasby@enova.com> writes:
> decibel@decina.cashnetusa=# SELECT 'Moo'::regclass;
> ERROR:  relation "moo" does not exist at character 8

That's doing what it's supposed to.  Compare

regression=# select 'Moo'::regclass;
ERROR:  relation "moo" does not exist
LINE 1: select 'Moo'::regclass;              ^
regression=# select '"Moo"'::regclass;
ERROR:  relation "Moo" does not exist
LINE 1: select '"Moo"'::regclass;              ^

The regclass input converter applies the same case-folding rules as
the SQL parser does, ie, fold unless double-quoted.
        regards, tom lane



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

Предыдущее
От: Greg Stark
Дата:
Сообщение: Re: regclass error reports improperly downcased
Следующее
От: Greg Stark
Дата:
Сообщение: Re: stats for network traffic WIP