X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (unknown [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id 92F5F53790 for ; Wed, 4 May 2005 11:42:28 -0300 (ADT) Received: from svr1.postgresql.org ([200.46.204.71]) by localhost (av.hub.org [200.46.204.144]) (amavisd-new, port 10024) with ESMTP id 68468-06 for ; Wed, 4 May 2005 14:42:19 +0000 (GMT) Received: from mallaury.noc.nerim.net (smtp-103-wednesday.noc.nerim.net [62.4.17.103]) by svr1.postgresql.org (Postfix) with ESMTP id 8B9FF535DB for ; Wed, 4 May 2005 11:42:18 -0300 (ADT) Received: from [192.168.0.138] (secure.openpricer.com [80.65.224.34]) by mallaury.noc.nerim.net (Postfix) with ESMTP id 119A662DE3 for ; Wed, 4 May 2005 16:42:21 +0200 (CEST) Message-ID: <4278DF49.3050006@free.fr> Date: Wed, 04 May 2005 16:42:17 +0200 From: "Xavier Poinsard" User-Agent: Debian Thunderbird 1.0.2 (X11/20050331) X-Accept-Language: en-us, en MIME-Version: 1.0 Cc: pgsql-jdbc@postgresql.org Subject: Re: postgresql-8.0.jar and failure of ORDER BY parameters References: <874qdjpfe5.fsf@meuh.mnc.ch> <17996.1115216059@sss.pgh.pa.us> <87ekcn9i85.fsf@meuh.mnc.ch> In-Reply-To: <87ekcn9i85.fsf@meuh.mnc.ch> Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Scanned: by amavisd-new at hub.org X-Spam-Status: No, hits=0.042 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200505/18 X-Sequence-Number: 12849 Guillaume Cottenceau wrote: > Is there any way to give parameters to ORDER BY in a > preparedStatement then? This seems impossible since the aim of the preparedStatement is the caching of the execution plan which is affected by the ORDER BY clause. The same reason applies for table name or columns names. The parameters should be real parameters, not part of the query structure.