pg.ddx.io pgsql-jdbc@postgresql.org mailing list archive
help / color / mirror / Atom feedgetTablePrivileges() does not report TRUNCATE privilege correctly
2+ messages / 2 participants
[nested] [flat]
* getTablePrivileges() does not report TRUNCATE privilege correctly
@ 2009-11-27 22:40 Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 1 reply; 2+ messages in thread
From: Thomas Kellerer @ 2009-11-27 22:40 UTC (permalink / raw)
To: 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
^ permalink raw reply [nested|flat] 2+ messages in thread
* Re: getTablePrivileges() does not report TRUNCATE privilege correctly
@ 2009-12-04 19:48 Kris Jurka <books@ejurka.com>
parent: Thomas Kellerer <spam_eater@gmx.net>
0 siblings, 0 replies; 2+ messages in thread
From: Kris Jurka @ 2009-12-04 19:48 UTC (permalink / raw)
To: Thomas Kellerer <spam_eater@gmx.net>; +Cc: pgsql-jdbc
On Fri, 27 Nov 2009, Thomas Kellerer wrote:
> 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}
Fixed in CVS. Thanks.
Kris Jurka
^ permalink raw reply [nested|flat] 2+ messages in thread
end of thread, other threads:[~2009-12-04 19:48 UTC | newest]
Thread overview: 2+ messages (download: mbox mbox.gz follow: Atom feed)
-- links below jump to the message on this page --
2009-11-27 22:40 getTablePrivileges() does not report TRUNCATE privilege correctly Thomas Kellerer <spam_eater@gmx.net>
2009-12-04 19:48 ` Kris Jurka <books@ejurka.com>
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