Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 36597 invoked from network); 11 Feb 2011 02:08:19 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 11 Feb 2011 02:08:19 -0000 Received: (qmail 41781 invoked by uid 500); 11 Feb 2011 02:08:19 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 41729 invoked by uid 500); 11 Feb 2011 02:08:18 -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 41722 invoked by uid 99); 11 Feb 2011 02:08:18 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 02:08:18 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Feb 2011 02:08:17 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 7887919E98B for ; Fri, 11 Feb 2011 02:07:57 +0000 (UTC) Date: Fri, 11 Feb 2011 02:07:57 +0000 (UTC) From: "Dag H. Wanvik (JIRA)" To: derby-dev@db.apache.org Message-ID: <1631316354.9470.1297390077490.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <922463324.1580.1296896790667.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Updated: (DERBY-5005) Error when fully qualifying a field from a view in an ORDER BY clause 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-5005?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Dag H. Wanvik updated DERBY-5005: --------------------------------- Attachment: derby-5005b.stat derby-5005b.diff Uploaded derby-5005b, which just cleans up the first version a bit. Committed as svn 1069661, resolving. > Error when fully qualifying a field from a view in an ORDER BY clause > --------------------------------------------------------------------- > > Key: DERBY-5005 > URL: https://issues.apache.org/jira/browse/DERBY-5005 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.7.1.1 > Environment: Windows 7 > Reporter: Lukas Eder > Assignee: Dag H. Wanvik > Priority: Minor > Labels: order, sql, syntax, views > Attachments: 5005.sql, derby-5005.diff, derby-5005.stat, derby-5005b.diff, derby-5005b.stat > > > I have a strange issue that can be reproduced easily with the following objects in schema "test": > create table a (a integer); > insert into a (a) values(1); > create view v as select * from a; > This works: > select test.a.a from test.a where test.a.a <> 2 order by test.a.a asc; > This doesn't work: > select test.v.a from test.v where test.v.a <> 2 order by test.v.a asc; > But this does: > select test.v.a from test.v where test.v.a <> 2 order by v.a asc; > This is the error I get: > Error: 'TEST.V' is not an exposed table name in the scope in which it appears. > SQLState: 42X10 > ErrorCode: -1 > I've tried quite a few SELECT clauses, and I think the ORDER BY clause is the only one having this issue. -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira