Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 62603 invoked from network); 8 Apr 2009 08:36:34 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 8 Apr 2009 08:36:34 -0000 Received: (qmail 60772 invoked by uid 500); 8 Apr 2009 08:36:34 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 60724 invoked by uid 500); 8 Apr 2009 08:36:34 -0000 Mailing-List: contact derby-dev-help@db.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: Delivered-To: mailing list derby-dev@db.apache.org Received: (qmail 60716 invoked by uid 99); 8 Apr 2009 08:36:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 08:36:34 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 08 Apr 2009 08:36:33 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id E646F234C004 for ; Wed, 8 Apr 2009 01:36:12 -0700 (PDT) Message-ID: <1161627696.1239179772927.JavaMail.jira@brutus> Date: Wed, 8 Apr 2009 01:36:12 -0700 (PDT) From: "Knut Anders Hatlen (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3610) Confusing error message when granting execute privilege In-Reply-To: <1404316485.1207744164315.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/DERBY-3610?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12696945#action_12696945 ] Knut Anders Hatlen commented on DERBY-3610: ------------------------------------------- Adding 42Y03.S.0 and 42Y03.S.1 won't affect those who already use 42Y03, as the three message ids are different. For consistency though, it may make sense to rename the original 42Y03 message to 42Y03.S.X so that we have 42Y03.S.0 - {0} is not recognized as a function or a procedure 42Y03.S.1 - {0} is not recognized as a procedure 42Y03.S.2 - {0} is not recognized as a function The constant SQLState.LANG_NO_SUCH_METHOD_ALIAS and the tag for that message in messages.xml will have to be updated. > 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 > Assignee: Hiranya Jayathilaka > 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.