Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 65499 invoked from network); 28 Sep 2010 13:56:58 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 28 Sep 2010 13:56:58 -0000 Received: (qmail 85629 invoked by uid 500); 28 Sep 2010 13:56:58 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 83514 invoked by uid 500); 28 Sep 2010 13:56:55 -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 83505 invoked by uid 99); 28 Sep 2010 13:56:54 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 13:56: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.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 28 Sep 2010 13:56:53 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o8SDuXxT026781 for ; Tue, 28 Sep 2010 13:56:33 GMT Message-ID: <18216236.442831285682193347.JavaMail.jira@thor> Date: Tue, 28 Sep 2010 09:56:33 -0400 (EDT) From: "Rick Hillegas (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-268) Add Support for truncate table In-Reply-To: <699266124.1115755469806.JavaMail.jira@ajax.apache.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/DERBY-268?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Rick Hillegas updated DERBY-268: -------------------------------- Attachment: derby-268-03-aa-npe.diff Attaching derby-268-03-aa-npe.diff. This patch fixes the NPE seen in the TruncatorConcurrency experiments when the re-initialization statement is TRUNCATE TABLE or DROP TABLE. I am running regression tests now. Touches the following files: ---------- M java/engine/org/apache/derby/impl/store/access/conglomerate/GenericController.java The NPE occurred while trying to update the statistics for a conglomerate which has been dropped. The fix is to not update the statistics if the conglomerate no longer exists. ---------- M java/testing/org/apache/derbyTesting/functionTests/tests/lang/TruncateTableTest.java Added a test case to track this fix. > Add Support for truncate table > ------------------------------ > > Key: DERBY-268 > URL: https://issues.apache.org/jira/browse/DERBY-268 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Lance Andersen > Assignee: Eranda Sooriyabandara > Priority: Minor > Attachments: derby-268-01-ab-enableForInsaneBuilds.diff, derby-268-02-aa-permsTest.diff, derby-268-03-aa-npe.diff, Derby-268.diff, tests.diff, TruncateConcurrency.java, TruncateConcurrency.java, TruncateConcurrency.java > > > Adding support for truncate table command will aid to portability -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.