Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 20580 invoked from network); 1 Dec 2006 22:04:43 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Dec 2006 22:04:43 -0000 Received: (qmail 95465 invoked by uid 500); 1 Dec 2006 22:04:51 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 95427 invoked by uid 500); 1 Dec 2006 22:04:51 -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 95418 invoked by uid 99); 1 Dec 2006 22:04:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 01 Dec 2006 14:04:51 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= 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; Fri, 01 Dec 2006 14:04:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 53A297142F7 for ; Fri, 1 Dec 2006 14:04:22 -0800 (PST) Message-ID: <18425427.1165010662339.JavaMail.jira@brutus> Date: Fri, 1 Dec 2006 14:04:22 -0800 (PST) From: "Daniel John Debrunner (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Closed: (DERBY-2096) Change the Parser.parserStatement() to return the more specific StatementNode instead of QueryTreeNode. In-Reply-To: <13619943.1163785965845.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-2096?page=all ] Daniel John Debrunner closed DERBY-2096. ---------------------------------------- Fix Version/s: 10.3.0.0 Resolution: Fixed Committed revision 481421 is last in a set of changes. > Change the Parser.parserStatement() to return the more specific StatementNode instead of QueryTreeNode. > ------------------------------------------------------------------------------------------------------- > > Key: DERBY-2096 > URL: http://issues.apache.org/jira/browse/DERBY-2096 > Project: Derby > Issue Type: Improvement > Components: SQL > Reporter: Daniel John Debrunner > Assigned To: Daniel John Debrunner > Priority: Minor > Fix For: 10.3.0.0 > > > Since this is compilinga statement returning the specific node makes more sense and will lead to a little more clarity in the code. > Some of the methods defined on QueryTreeNode such as generate() and needsSavepoint() can move down to StatementNode and thus make the code more readable ("which generate is called for a value node?") and remove implementations of these methods that can never be called. -- 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