[
https://issues.apache.org/jira/browse/DERBY-4191?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12780309#action_12780309
]
Knut Anders Hatlen commented on DERBY-4191:
-------------------------------------------
Just to add to Rick's point, this problem is not limited to COUNT, or to
aggregate functions. Same problem can be seen with for instance this statement
that just selects a constant expression from table ROOT.T (executed as user KAH
in the original repro):
ij(CONNECTION1)> select x from root.t;
ERROR 42502: User 'KAH' does not have SELECT permission on column 'X' of table
'ROOT'.'T'.
ij(CONNECTION1)> select 1 from root.t;
1
-----------
1
1
1
3 rows selected
> Lack of SELECT privilege does not prevent SELECT COUNT(*)
> ---------------------------------------------------------
>
> Key: DERBY-4191
> URL: https://issues.apache.org/jira/browse/DERBY-4191
> Project: Derby
> Issue Type: Bug
> Components: SQL
> Affects Versions: 10.4.2.0, 10.5.1.1
> Reporter: Knut Anders Hatlen
> Attachments: repro.sql
>
>
> A user that does not have SELECT privilege on a table can still perform a
> SELECT COUNT(*) on that table. Counting a specific column (e.g., SELECT
> COUNT(X)) is prevented.
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.