db-derby-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Knut Anders Hatlen (JIRA)" <j...@apache.org>
Subject [jira] Commented: (DERBY-3610) Confusing error message when granting execute privilege
Date Tue, 07 Apr 2009 22:54:13 GMT

    [ https://issues.apache.org/jira/browse/DERBY-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696802#action_12696802

Knut Anders Hatlen commented on DERBY-3610:

> Knut, I don't think "procedure" and "function" is a problem, both
> are SQL keywords, we had similar cases in the past. But I like the
> idea of avoiding having to introduce a new error message so doing as
> you suggest is still good: +1.

Hm... I thought I proposed the opposite of what you said, that is
adding two new error messages, not avoiding the introduction of new
ones... But I'm glad you support the idea! ;)

As to "procedure" and "function" being keywords, that's true, but we
normally use upper case letters when they are used as such. Looking at
the translations of the 42Y03 message, it seems like the translators
did not regard those words as SQL keywords in that message, but rather
as names of concepts that needed to be translated.

> Confusing error message when granting execute privilege
> -------------------------------------------------------
>                 Key: DERBY-3610
>                 URL: https://issues.apache.org/jira/browse/DERBY-3610
>             Project: Derby
>          Issue Type: Improvement
>          Components: Newcomer, SQL
>            Reporter: Dag H. Wanvik
>            Priority: Trivial
>         Attachments: DERBY-3610.patch
> When the wrong keyword is used in a grant execute privilege statement, the error message
> leads one the believe the identifier is neither a procedure or a function, when in deed
it is one of the two.
> > create function bc(i int) returns int language java parameter style java external
name 'java.lang.Integer.bitCount' no sql;
> > grant execute on procedure bc to foo;
> ERROR 42Y03: 'BC' is not recognized as a function or procedure.
> > grant execute on function bc to foo;
> (works)
> The reason is that the error message is generic. It would be better to have an error
message for each case.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message