Re: Does has_table_privilege() have a case bug

Поиск
Список
Период
Сортировка
От Jeff Davis
Тема Re: Does has_table_privilege() have a case bug
Дата
Msg-id 1202257639.24634.73.camel@dogma.ljc.laika.com
обсуждение исходный текст
Ответ на Does has_table_privilege() have a case bug  (johnf <jfabiani@yolo.com>)
Ответы Re: Does has_table_privilege() have a case bug
Список pgsql-general
On Tue, 2008-02-05 at 16:10 -0800, johnf wrote:
> I create a table named "Account_Text_Table" the owner is 'johnf'.
>
> select has_table_privilege('johnf', 'public.Account_Text_Table', 'SELECT')
> I get the following error:
>
> ERROR:  relation "public.account_text_table" does not exist

PostgreSQL folds to lower case unless you put the name in double-quotes.
Try putting the table name in double-quotes.

E.g.: select has_table_privilege('johnf', 'public."Account_Text_Table"',
'SELECT')

Regards,
    Jeff Davis


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

Предыдущее
От: johnf
Дата:
Сообщение: Does has_table_privilege() have a case bug
Следующее
От: brian
Дата:
Сообщение: Re: Does has_table_privilege() have a case bug