Return-Path: Delivered-To: apmail-db-torque-user-archive@www.apache.org Received: (qmail 76331 invoked from network); 23 Oct 2003 09:31:12 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 23 Oct 2003 09:31:12 -0000 Received: (qmail 39653 invoked by uid 500); 23 Oct 2003 09:30:45 -0000 Delivered-To: apmail-db-torque-user-archive@db.apache.org Received: (qmail 39290 invoked by uid 500); 23 Oct 2003 09:30:43 -0000 Mailing-List: contact torque-user-help@db.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Apache Torque Users List" Reply-To: "Apache Torque Users List" Delivered-To: mailing list torque-user@db.apache.org Received: (qmail 39269 invoked from network); 23 Oct 2003 09:30:42 -0000 Received: from unknown (HELO mail.lotto-berlin.de) (217.89.48.166) by daedalus.apache.org with SMTP; 23 Oct 2003 09:30:42 -0000 Reply-To: From: "Michael Burschik" To: Subject: Problems with Criteria and ORDER BY Date: Thu, 23 Oct 2003 11:30:34 +0200 Message-ID: <002401c39948$4fef6550$920115ac@EDV46> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2911.0) Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1106 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N The BasePeer.createQuery method checks whether the order by column contains a "." and throws an exception if it does not. This is not a very good idea. First of all, it does not catch non-existent column names that happen to include a ".". And secondly, it does not allow for the perfectly legal use of a column alias in the order by statement, e.g. "select somecolumn, count(*) as count from mytable order by count". Is there another way to get this, apart from the obvious solution of building the statement manually? Regards Michael Burschik --------------------------------------------------------------------- To unsubscribe, e-mail: torque-user-unsubscribe@db.apache.org For additional commands, e-mail: torque-user-help@db.apache.org