Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 73008 invoked from network); 31 Oct 2008 00:41:05 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Oct 2008 00:41:05 -0000 Received: (qmail 98113 invoked by uid 500); 31 Oct 2008 00:41:11 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 97905 invoked by uid 500); 31 Oct 2008 00:41:10 -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 97894 invoked by uid 99); 31 Oct 2008 00:41:10 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 30 Oct 2008 17:41:10 -0700 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; Fri, 31 Oct 2008 00:40:03 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 4F758234C25A for ; Thu, 30 Oct 2008 17:40:44 -0700 (PDT) Message-ID: <1000109274.1225413644324.JavaMail.jira@brutus> Date: Thu, 30 Oct 2008 17:40:44 -0700 (PDT) From: "Kathey Marsden (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Resolved: (DERBY-3141) ResultSetMetaData reports extra column if "order by colname" used. In-Reply-To: <4185422.1192840550747.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-3141?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Kathey Marsden resolved DERBY-3141. ----------------------------------- Resolution: Cannot Reproduce Resolving this CNR. If we get a reproduction we can reopen it. > ResultSetMetaData reports extra column if "order by colname" used. > ------------------------------------------------------------------ > > Key: DERBY-3141 > URL: https://issues.apache.org/jira/browse/DERBY-3141 > Project: Derby > Issue Type: Bug > Components: JDBC > Affects Versions: 10.3.1.4 > Environment: Windows, JRE 1.5, Network Server/Client > Reporter: Ali Demir > Priority: Minor > > for a query like: > select col1 from table1 where col1=? order by id > Derby network server returns ResultSetMetaData that contains 2 columns: col1, id, where as it should return only col1. > It works correctly (returns only col1) if query does not have order by: > select col1 from table1 where col1=? > It seems that to get the "order by" working, Derby silently appends id column to the select projection but forgets to remove it from ResultSetMetaData. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.