getTablePrivileges() does not report TRUNCATE privilege correctly

From: Thomas Kellerer <spam_eater(at)gmx(dot)net>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: getTablePrivileges() does not report TRUNCATE privilege correctly
Date: 2009-11-27 22:40:50
Message-ID: hepkhe$tv4$1@ger.gmane.org
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

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

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message hw 2009-11-30 09:52:14 Upgrading jdbc
Previous Message Thomas Kellerer 2009-11-25 14:03:43 Re: getUdateCount() vs. RETURNING clause