Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 92849 invoked from network); 6 Oct 2006 16:56:37 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (209.237.227.199) by minotaur.apache.org with SMTP; 6 Oct 2006 16:56:37 -0000 Received: (qmail 13050 invoked by uid 500); 6 Oct 2006 16:56:36 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 13016 invoked by uid 500); 6 Oct 2006 16:56:36 -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 13007 invoked by uid 99); 6 Oct 2006 16:56:36 -0000 Received: from idunn.apache.osuosl.org (HELO idunn.apache.osuosl.org) (140.211.166.84) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 06 Oct 2006 09:56:36 -0700 X-ASF-Spam-Status: No, hits=0.0 required=5.0 tests= Received: from [209.237.227.198] ([209.237.227.198:44470] helo=brutus.apache.org) by idunn.apache.osuosl.org (ecelerity 2.1.1.8 r(12930)) with ESMTP id 0A/46-24193-3CA86254 for ; Fri, 06 Oct 2006 09:56:35 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id C3CCD7141F5 for ; Fri, 6 Oct 2006 09:56:20 -0700 (PDT) Message-ID: <25247199.1160153780799.JavaMail.root@brutus> Date: Fri, 6 Oct 2006 09:56:20 -0700 (PDT) From: "Mike Matrigali (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-1894) SQLSTATE 42X10 occurs when qualifying a column with a synonym in ORDER BY clause In-Reply-To: <6022947.1159389050031.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-1894?page=all ] Mike Matrigali resolved DERBY-1894. ----------------------------------- Resolution: Fixed fix has made it to trunk, 10.2 branch and 10.1 branch > SQLSTATE 42X10 occurs when qualifying a column with a synonym in ORDER BY clause > -------------------------------------------------------------------------------- > > Key: DERBY-1894 > URL: http://issues.apache.org/jira/browse/DERBY-1894 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.2.1.6, 10.3.0.0, 10.1.3.1, 10.2.2.0 > Environment: Any > Reporter: Yip Ng > Assigned To: Yip Ng > Fix For: 10.1.3.2, 10.2.2.0, 10.3.0.0 > > Attachments: derby1894-trunk-diff01.txt, derby1894-trunk-diff02.txt, derby1894-trunk-stat01.txt, derby1894-trunk-stat02.txt > > > SQLSTATE 42X10 occurs when qualifying a column with a synonym in ORDER BY clause, where the synonym was declared in a different schema: > ij version 10.3 > ij> connect 'jdbc:derby:wombat;create=true'; > ij> create schema test1; > 0 rows inserted/updated/deleted > ij> create schema test2; > 0 rows inserted/updated/deleted > ij> create table test1.testtable(id bigint not null); > 0 rows inserted/updated/deleted > ij> create synonym test2.testtable for test1.testtable; > 0 rows inserted/updated/deleted > ij> set schema test1; > 0 rows inserted/updated/deleted > ij> select testtable.id from testtable; > ID > -------------------- > 0 rows selected > ij> set schema test2; > 0 rows inserted/updated/deleted > ij> select testtable.id from testtable; > ID > -------------------- > 0 rows selected > ij> select testtable.id from testtable order by testtable.id; > ERROR 42X10: 'TESTTABLE' is not an exposed table name in the scope in which it appears. > ij> -- 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