getTablePrivileges() does not report TRUNCATE privilege correctly - Mailing list pgsql-jdbc

From Thomas Kellerer
Subject getTablePrivileges() does not report TRUNCATE privilege correctly
Date
Msg-id hepkhe$tv4$1@ger.gmane.org
Whole thread Raw
Responses Re: getTablePrivileges() does not report TRUNCATE privilege correctly  (Kris Jurka <books@ejurka.com>)
List 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


pgsql-jdbc by date:

Previous
From: Thomas Kellerer
Date:
Subject: Re: getUdateCount() vs. RETURNING clause
Next
From: hw@solvedirect.com
Date:
Subject: Upgrading jdbc