Received: from localhost (unknown [200.46.208.211]) by mail.postgresql.org (Postfix) with ESMTP id 79120634008 for ; Fri, 27 Nov 2009 18:41:24 -0400 (AST) Received: from mail.postgresql.org ([200.46.204.86]) by localhost (mx1.hub.org [200.46.208.211]) (amavisd-maia, port 10024) with ESMTP id 97013-02 for ; Fri, 27 Nov 2009 22:40:59 +0000 (UTC) X-Greylist: domain auto-whitelisted by SQLgrey-1.7.6 Received: from lo.gmane.org (lo.gmane.org [80.91.229.12]) by mail.postgresql.org (Postfix) with ESMTP id BF7BD633D97 for ; Fri, 27 Nov 2009 18:41:13 -0400 (AST) Received: from list by lo.gmane.org with local (Exim 4.50) id 1NE9Uy-00088O-07 for pgsql-jdbc@postgresql.org; Fri, 27 Nov 2009 23:41:08 +0100 Received: from ppp-93-104-169-49.dynamic.mnet-online.de ([93.104.169.49]) by main.gmane.org with esmtp (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2009 23:41:07 +0100 Received: from spam_eater by ppp-93-104-169-49.dynamic.mnet-online.de with local (Gmexim 0.1 (Debian)) id 1AlnuQ-0007hv-00 for ; Fri, 27 Nov 2009 23:41:07 +0100 X-Injected-Via-Gmane: http://gmane.org/ To: pgsql-jdbc@postgresql.org From: Thomas Kellerer Subject: getTablePrivileges() does not report TRUNCATE privilege correctly Date: Fri, 27 Nov 2009 23:40:50 +0100 Lines: 18 Message-ID: Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-15; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: usenet@ger.gmane.org X-Gmane-NNTP-Posting-Host: ppp-93-104-169-49.dynamic.mnet-online.de User-Agent: Mozilla/5.0 (Windows; U; Windows NT 5.1; de; rv:1.8.1.21) Gecko/20090302 Thunderbird/2.0.0.21 Mnenhy/0.7.5.666 X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=-0.895 tagged_above=-10 required=5 tests=AWL=0.215, BAYES_05=-1.11 X-Spam-Level: X-Archive-Number: 200911/32 X-Sequence-Number: 20079 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