Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 38660 invoked from network); 19 Sep 2006 19:18:03 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 19 Sep 2006 19:18:03 -0000 Received: (qmail 39994 invoked by uid 500); 19 Sep 2006 19:18:02 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 39962 invoked by uid 500); 19 Sep 2006 19:18:02 -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 39953 invoked by uid 99); 19 Sep 2006 19:18:02 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 19 Sep 2006 12:18:02 -0700 X-ASF-Spam-Status: No, hits=0.2 required=5.0 tests=UPPERCASE_25_50 Received: from ([209.237.227.198:41527] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1 r(10620)) with ESMTP id 84/78-28275-86240154 for ; Tue, 19 Sep 2006 12:18:00 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 35F9041006E for ; Tue, 19 Sep 2006 19:14:25 +0000 (GMT) Message-ID: <13640924.1158693265218.JavaMail.jira@brutus> Date: Tue, 19 Sep 2006 12:14:25 -0700 (PDT) From: "Yip Ng (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-1304) DROP view does not always completely remove view In-Reply-To: <9539148.1147116500939.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Spam-Rating: minotaur.apache.org 1.6.2 0/1000/N [ http://issues.apache.org/jira/browse/DERBY-1304?page=all ] Yip Ng updated DERBY-1304: -------------------------- Derby Info: [Patch Available] > DROP view does not always completely remove view > ------------------------------------------------ > > Key: DERBY-1304 > URL: http://issues.apache.org/jira/browse/DERBY-1304 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.1.2.1 > Environment: Windows XP > Reporter: Piet Blok > Assigned To: Yip Ng > Fix For: 10.2.1.0 > > Attachments: derby1304-trunk-diff01.txt, derby1304-trunk-stat01.txt > > > Execute the following scenario: > Create a schema > Create a table > Create a view > Drop the view > Drop the table > Drop the schema > The first time this sequence executes OK, However, executing the same sequence again fails on the drop view: > ERROR X0X05: Table 'view' does not exist. > When I leave out the create and drop of a view, all goes well, so it seems > to have something to do with the view. > I encountered the problem first using org.apache.derby.jdbc.ClientConnectionPoolDataSource, but later I found that the problem is reproducable with a simple ij script as follows: > -- ******************************************************* > -- Setup connection > -- ******************************************************* > connect 'jdbc:derby://localhost/TestData;create=true;'; > -- ******************************************************* > -- The first time > -- ******************************************************* > CREATE SCHEMA TEST_SCHEMA; > CREATE TABLE TEST_SCHEMA.T1 (TABLE_COLUMN LONG VARCHAR); > CREATE VIEW TEST_SCHEMA.V1 AS SELECT TABLE_COLUMN AS VIEW_COLUMN FROM > TEST_SCHEMA.T1; > DROP VIEW TEST_SCHEMA.V1; > DROP TABLE TEST_SCHEMA.T1; > DROP SCHEMA TEST_SCHEMA RESTRICT; > -- ******************************************************* > -- The second time > -- ******************************************************* > CREATE SCHEMA TEST_SCHEMA; > CREATE TABLE TEST_SCHEMA.T1 (TABLE_COLUMN LONG VARCHAR); > CREATE VIEW TEST_SCHEMA.V1 AS SELECT TABLE_COLUMN AS VIEW_COLUMN FROM > TEST_SCHEMA.T1; > DROP VIEW TEST_SCHEMA.V1; -- This statement fails > DROP TABLE TEST_SCHEMA.T1; > DROP SCHEMA TEST_SCHEMA RESTRICT; > -- ******************************************************* > -- Cleanup > -- ******************************************************* > disconnect; > connect 'jdbc:derby://localhost/TestData;shutdown=true;'; > As an explanation why I would like to be able to create and then drop views: I am trying to interactively create my table setup. When I make mistakes I must drop wrongly defined tables or views. > I encountered some other very strange behaviour that might be related to this issue (table not found when I just created it and wanted to create a second table with a foreign key referencing the first table), but which I am not yet able to reproduce in a consistent and simple way. -- 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