Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 85502 invoked from network); 1 Jan 2007 17:22:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2007 17:22:21 -0000 Received: (qmail 10217 invoked by uid 500); 1 Jan 2007 17:22:26 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 10048 invoked by uid 500); 1 Jan 2007 17:22:25 -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 10036 invoked by uid 99); 1 Jan 2007 17:22:25 -0000 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests=UPPERCASE_25_50 X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 01 Jan 2007 09:22:24 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C91DC7142D2 for ; Mon, 1 Jan 2007 09:21:27 -0800 (PST) Message-ID: <5952501.1167672087820.JavaMail.jira@brutus> Date: Mon, 1 Jan 2007 09:21:27 -0800 (PST) From: "Bryan Pendleton (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-2202) DROP PROCEDURE depends on SET SCHEMA In-Reply-To: <28242697.1167313941017.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ http://issues.apache.org/jira/browse/DERBY-2202?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12461626 ] Bryan Pendleton commented on DERBY-2202: ---------------------------------------- Hi Yip, Thanks for the quick work and the clear explanation and the good tests. The patch looks good to me; I intend to run a few tests and commit it. One question: why is grantRevokeDDL.out changed? I see that it is just a different SQLState, but what is actually going on there? > DROP PROCEDURE depends on SET SCHEMA > ------------------------------------ > > Key: DERBY-2202 > URL: http://issues.apache.org/jira/browse/DERBY-2202 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.2.0 > Environment: Sun Solaris; > java version "1.4.1_06" > Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.1_06-b01) > Java HotSpot(TM) Client VM (build 1.4.1_06-b01, mixed mode) > Reporter: Bernhard Bodenstorfer > Assigned To: Yip Ng > Priority: Minor > Attachments: 2202_repro.sql, derby2202-trunk-diff01.txt, derby2202-trunk-stat01.txt > > > This is possibly related to Bug https://issues.apache.org/jira/browse/DERBY-1304. > Use ij to execute the following statements: > CREATE SCHEMA datamgmt; > CREATE PROCEDURE datamgmt.exit ( IN value INTEGER ) > MODIFIES SQL DATA > PARAMETER STYLE JAVA > LANGUAGE JAVA > EXTERNAL NAME 'java.lang.System.exit' > ; > DROP PROCEDURE datamgmt.exit; > DROP SCHEMA datamgmt RESTRICT; > Then execute exactly the same lines once again. Then statement "DROP PROCEDURE datamgmt.exit" yields: > ERROR 42X94: PROCEDURE 'EXIT' does not exist. > However, if the DROP works if a default schema (SET SCHEMA) is used instead of the prefixed schemaName. That is, the following lines can be executed more than once in a row: > CREATE SCHEMA datamgmt; > CREATE PROCEDURE datamgmt.exit ( IN value INTEGER ) > MODIFIES SQL DATA > PARAMETER STYLE JAVA > LANGUAGE JAVA > EXTERNAL NAME 'java.lang.System.exit' > ; > SET SCHEMA datamgmt; > DROP PROCEDURE exit; > DROP SCHEMA datamgmt RESTRICT; > Therefore, SET SCHEMA can be used as a workaround, hence minor importance. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira