You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@sentry.apache.org by "guoquan (JIRA)" <ji...@apache.org> on 2015/03/18 06:22:45 UTC

[jira] [Updated] (SENTRY-526) Duplicate grant same but case sensitive privilges will throw exception

     [ https://issues.apache.org/jira/browse/SENTRY-526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

guoquan updated SENTRY-526:
---------------------------
    Fix Version/s: 1.5.0

> Duplicate grant same but case sensitive privilges will throw exception
> ----------------------------------------------------------------------
>
>                 Key: SENTRY-526
>                 URL: https://issues.apache.org/jira/browse/SENTRY-526
>             Project: Sentry
>          Issue Type: Bug
>            Reporter: Xiaomeng Huang
>            Assignee: Xiaomeng Huang
>             Fix For: 1.5.0
>
>         Attachments: SENTRY-526.001.patch, SENTRY-526.002.patch
>
>
> When we duplicate grant case sensitive privileges, it will throw exception
> {code}
> java.sql.SQLException: The statement was aborted because it would have caused a duplicate key value in a unique or primary key constraint or unique index identified by 'PRIVILEGE_INDEX' defined on 'SENTRY_DB_PRIVILEGE'.
> {code}
> Please see my test cases in my patch. Before the patch, the two cases will throw exception.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)