Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 22956 invoked from network); 25 May 2007 23:45:39 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 25 May 2007 23:45:39 -0000 Received: (qmail 56966 invoked by uid 500); 25 May 2007 23:45:44 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 56744 invoked by uid 500); 25 May 2007 23:45:43 -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 56733 invoked by uid 99); 25 May 2007 23:45:43 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 25 May 2007 16:45:43 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED 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, 25 May 2007 16:45:37 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id CFA37714066 for ; Fri, 25 May 2007 16:45:16 -0700 (PDT) Message-ID: <15485145.1180136716847.JavaMail.jira@brutus> Date: Fri, 25 May 2007 16:45:16 -0700 (PDT) From: "A B (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Updated: (DERBY-2526) Wrong query results due to column ordering in UNION view In-Reply-To: <17995563.1175729012257.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 [ https://issues.apache.org/jira/browse/DERBY-2526?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] A B updated DERBY-2526: ----------------------- Attachment: d2526_v1.html Re-attaching with the intended file name (as indicated in previous comment) and with some minor corrections to section II. Sorry for the noise. > Wrong query results due to column ordering in UNION view > -------------------------------------------------------- > > Key: DERBY-2526 > URL: https://issues.apache.org/jira/browse/DERBY-2526 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.0.2.1, 10.1.3.1, 10.2.2.0, 10.3.0.0 > Reporter: Bryan Pendleton > Assigned To: Bryan Pendleton > Attachments: badQuery.log, d2526_v1.html, d2526_v1.patch, derby-2526.sql, DistinctTestNotes.txt, firstTryPatch.diff, goodQuery.log > > > I think both select statements in the attached repro script should return 1 row, but in fact the first statement returns 1 row and the second returns zero rows. > The only difference between the two statements is that the columns in the UNION view are listed in a different order (bvw vs. bvw2). > This seems like a bug to me; the order of the columns in the view definition shouldn't matter, should it? > As Army noted on the derby-dev list, the fact that this reproduces with 10.0 means that it is not caused by some of the 10.2 optimizer changes. Something else is going wrong. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.