getTablePrivileges() does not report TRUNCATE privilege correctly

Поиск
Список
Период
Сортировка
Искать

getTablePrivileges() does not report TRUNCATE privilege correctly

От:
Thomas Kellerer <spam_eater@gmx.net>
Дата:
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

Re: getTablePrivileges() does not report TRUNCATE privilege correctly

От:
Kris Jurka <books@ejurka.com>
Дата:


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
FAQ