Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51378 invoked from network); 28 Apr 2009 00:17:55 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 28 Apr 2009 00:17:55 -0000 Received: (qmail 9614 invoked by uid 500); 28 Apr 2009 00:17:54 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 9551 invoked by uid 500); 28 Apr 2009 00:17:54 -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 9301 invoked by uid 99); 28 Apr 2009 00:17:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Apr 2009 00:17:54 +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; Tue, 28 Apr 2009 00:17:52 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 313A0234C4B5 for ; Mon, 27 Apr 2009 17:17:31 -0700 (PDT) Message-ID: <1172797385.1240877851198.JavaMail.jira@brutus> Date: Mon, 27 Apr 2009 17:17:31 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (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:all-tabpanel ] Dag H. Wanvik closed DERBY-3610. -------------------------------- Verified that the error messages now look clear for both function and procedure, closing. Thanks, Hiranya and Knut. > 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 > Fix For: 10.6.0.0 > > Attachments: DERBY-3610-update1.patch, DERBY-3610-update2.patch, DERBY-3610.patch, GrantRevokeTest.log > > > 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.