Re: Does has_table_privilege() have a case bug

From: Jeff Davis <pgsql(at)j-davis(dot)com>
To: johnf <jfabiani(at)yolo(dot)com>
Cc: pgsql-general(at)postgresql(dot)org
Subject: Re: Does has_table_privilege() have a case bug
Date: 2008-02-06 00:27:19
Message-ID: 1202257639.24634.73.camel@dogma.ljc.laika.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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

In response to

Responses

Browse pgsql-general by date

  From Date Subject
Next Message brian 2008-02-06 00:40:18 Re: Does has_table_privilege() have a case bug
Previous Message johnf 2008-02-06 00:10:41 Does has_table_privilege() have a case bug