Return-Path: Delivered-To: apmail-db-derby-dev-archive@www.apache.org Received: (qmail 51688 invoked from network); 20 Oct 2007 00:36:12 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 20 Oct 2007 00:36:12 -0000 Received: (qmail 77668 invoked by uid 500); 20 Oct 2007 00:35:59 -0000 Delivered-To: apmail-db-derby-dev-archive@db.apache.org Received: (qmail 77626 invoked by uid 500); 20 Oct 2007 00:35:59 -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 77617 invoked by uid 99); 20 Oct 2007 00:35:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 19 Oct 2007 17:35:59 -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; Sat, 20 Oct 2007 00:36:11 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id B701871420A for ; Fri, 19 Oct 2007 17:35:50 -0700 (PDT) Message-ID: <4185422.1192840550747.JavaMail.jira@brutus> Date: Fri, 19 Oct 2007 17:35:50 -0700 (PDT) From: "Ali Demir (JIRA)" To: derby-dev@db.apache.org Subject: [jira] Created: (DERBY-3141) ResultSetMetaData reports extra column if "order by colname" used. MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org 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.