Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 20006 invoked from network); 27 Aug 2009 16:39:21 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 27 Aug 2009 16:39:21 -0000 Received: (qmail 20660 invoked by uid 500); 27 Aug 2009 16:39:21 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 20617 invoked by uid 500); 27 Aug 2009 16:39:21 -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 20609 invoked by uid 99); 27 Aug 2009 16:39:21 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 27 Aug 2009 16:39:21 +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; Thu, 27 Aug 2009 16:39:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 841EE234C044 for ; Thu, 27 Aug 2009 09:38:59 -0700 (PDT) Message-ID: <1179206587.1251391139526.JavaMail.jira@brutus> Date: Thu, 27 Aug 2009 09:38:59 -0700 (PDT) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-3478) Simple column names specified as part of "AS" clause in a table expression are ignored if the table expression is a view. In-Reply-To: <595423789.1204153371136.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-3478?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-3478: --------------------------------- Fix Version/s: 10.5.4.0 > Simple column names specified as part of "AS" clause in a table expression are ignored if the table expression is a view. > ------------------------------------------------------------------------------------------------------------------------- > > Key: DERBY-3478 > URL: https://issues.apache.org/jira/browse/DERBY-3478 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.1, 10.1.1.0, 10.1.2.1, 10.1.3.1, 10.2.1.6, 10.2.2.0, 10.3.1.4, 10.3.2.1 > Reporter: A B > Assignee: Dag H. Wanvik > Priority: Minor > Fix For: 10.5.4.0, 10.6.0.0 > > Attachments: derby-3478.diff, derby-3478.stat > > > Simple repro as follows: > create table t1 (i int, j int); > insert into t1 values (1, 1), (1, -1), (2, 2), (3, -3), (4, 4); > create view v1 as select j, i from t1; > create view v2 (x,y,z) as select j, i, i+j from t1; > -- OK: Returns column names specified in AS clause. > select * from t1 as x(a,b); > -- OK: Returns column names for the views > select * from v1; > select * from v2; > -- WRONG: Ignores column names specified in AS clause for the views. > select * from v1 x(a,b); > select * from v2 as x(a,b,c); > I observed this as far back as 10.0.2.1, so this is not a regression. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.