Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 45876 invoked from network); 1 Jan 2009 18:28:08 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 1 Jan 2009 18:28:08 -0000 Received: (qmail 65655 invoked by uid 500); 1 Jan 2009 18:28:07 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 65623 invoked by uid 500); 1 Jan 2009 18:28:07 -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 65614 invoked by uid 99); 1 Jan 2009 18:28:07 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 01 Jan 2009 10:28:07 -0800 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, 01 Jan 2009 18:28:05 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 6E720234C4A7 for ; Thu, 1 Jan 2009 10:27:44 -0800 (PST) Message-ID: <1639730738.1230834464450.JavaMail.jira@brutus> Date: Thu, 1 Jan 2009 10:27:44 -0800 (PST) From: "geoff hendrey (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Commented: (DERBY-3997) ORDER BY causes column to be returned In-Reply-To: <1249256268.1230098924266.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-3997?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12660205#action_12660205 ] geoff hendrey commented on DERBY-3997: -------------------------------------- Thanks guys. Do we know when a derby binary release will include this fix? > ORDER BY causes column to be returned > ------------------------------------- > > Key: DERBY-3997 > URL: https://issues.apache.org/jira/browse/DERBY-3997 > Project: Derby > Issue Type: Bug > Components: SQL > Affects Versions: 10.4.1.3 > Environment: Mac OS 10.4, JDK 1,6 > Reporter: geoff hendrey > Assignee: Knut Anders Hatlen > Fix For: 10.5.0.0 > > Attachments: d3997.diff, d3997.stat > > > The ORDER BY is causing the ordered column to be retrieved even though it is not part of the SELECT clause. Here is a script to create a table, insert a row, and perform the select: > CREATE TABLE "REVIEWS"."GEOFF__REVIEWS__REVIEW" > ( > PK INTEGER PRIMARY KEY not null, > numstars BIGINT, > body VARCHAR(32672), > title VARCHAR(32672), > authoremail VARCHAR(32672) > ); > INSERT INTO "REVIEWS"."GEOFF__REVIEWS__REVIEW" (PK,numstars,body,title,authoremail) VALUES (0 /*not nullable*/,0,'s','s','s'); > SELECT "review"."numstars" > FROM > "GEOFF__REVIEWS__REVIEW" AS "review" > WHERE > "review"."PK" = 1 > ORDER BY > "review".PK -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.