X-Original-To: pgsql-jdbc-postgresql.org@postgresql.org Received: from localhost (mx1.hub.org [200.46.208.251]) by postgresql.org (Postfix) with ESMTP id 5FBF79FB3F3 for ; Wed, 6 Sep 2006 17:33:12 -0300 (ADT) Received: from postgresql.org ([200.46.204.71]) by localhost (mx1.hub.org [200.46.208.251]) (amavisd-new, port 10024) with ESMTP id 78243-01-6 for ; Wed, 6 Sep 2006 17:33:03 -0300 (ADT) X-Greylist: from auto-whitelisted by SQLgrey- Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [131.203.101.226]) by postgresql.org (Postfix) with ESMTP id 942EB9FB3D2 for ; Wed, 6 Sep 2006 17:32:07 -0300 (ADT) Received: from 203-173-188-119.bliink.ihug.co.nz ([203.173.188.119] helo=[10.1.1.6]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1GL445-0000FW-Ar; Thu, 07 Sep 2006 08:32:06 +1200 Message-ID: <44FF3043.3030901@opencloud.com> Date: Thu, 07 Sep 2006 08:32:03 +1200 From: Oliver Jowett User-Agent: Thunderbird 1.5.0.5 (Windows/20060719) MIME-Version: 1.0 To: David Gagnon CC: pgsql-jdbc@postgresql.org Subject: Re: upgrade problem with driver postgresql-8.1-407.jdbc3.jar References: <44FED47A.3010008@siunik.com> <44FF2BE2.2020708@opencloud.com> <44FF3005.6080101@siunik.com> In-Reply-To: <44FF3005.6080101@siunik.com> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Scanned: Maia Mailguard 1.0.1 X-Spam-Status: No, hits=0.025 tagged_above=0 required=5 tests=AWL X-Spam-Level: X-Archive-Number: 200609/25 X-Sequence-Number: 15743 David Gagnon wrote: > Is that a bug then since this way working with the 7.4 jdbc driver ? It's not really a bug, it's that the driver is now more picky about where parameters may be placed in the query. You were never really meant to put parameters just anywhere in a query, it just happened to work in the past. > Any idea why it stops working ? The older driver you used did literal substitution of parameter values into the query. Newer drivers turn ? placeholders into $n placeholders and pass the actual parameter values separately to the query string. So they only allow ? placeholders where a $n placeholder is accepted by the server. -O