From: Thomas Kellerer <spam_eater@gmx.net>
To: pgsql-jdbc@postgresql.org
Subject: getTablePrivileges() does not report TRUNCATE privilege correctly
Date: Fri, 27 Nov 2009 23:40:50 +0100
Message-ID: <hepkhe$tv4$1@ger.gmane.org> (raw)
Hi,
I was seeing an UNKNOWN privilege returned from getTablePrivileges() and the cause for this is the new TRUNCATE privilege.
I have a table where the acl looks like this:
{thomas=arwdDxt/thomas,=arwdDxt/thomas}
The D will be translated to "UNKNOWN" in AbstractJdbc2DatabaseMetaData.addACLPrivileges()
The switch simply does not contain an entry for 'D', so the fix should be fairly easy.
I checked this in the sources for 8.4-701
Regards
Thomas
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: spam_eater@gmx.net
Subject: Re: getTablePrivileges() does not report TRUNCATE privilege correctly
In-Reply-To: <hepkhe$tv4$1@ger.gmane.org>
References: <hepkhe$tv4$1@ger.gmane.org>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox