X-Original-To: pgsql-jdbc-postgresql.org@localhost.postgresql.org Received: from localhost (av.hub.org [200.46.204.144]) by svr1.postgresql.org (Postfix) with ESMTP id C4EE4D7B95 for ; Sun, 4 Sep 2005 02:44:47 -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 56450-02 for ; Sun, 4 Sep 2005 05:44:46 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id B13B9D6DA1 for ; Sun, 4 Sep 2005 02:44:44 -0300 (ADT) Received: from 203-79-104-60.cable.paradise.net.nz ([203.79.104.60] helo=[192.168.0.20]) by yass.opencloud.co.nz with asmtp (TLS-1.0:DHE_RSA_AES_128_CBC_SHA:16) (Exim 4.34) id 1EBnJ6-0001XM-BI for pgsql-jdbc@postgresql.org; Sun, 04 Sep 2005 17:44:44 +1200 Message-ID: <431A89CB.7040201@opencloud.com> Date: Sun, 04 Sep 2005 17:44:43 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: pgsql-jdbc@postgresql.org Subject: Re: Change in parameters' order in prepared statement?? References: <3fccaa69050902153329b4947@mail.gmail.com> <4318D622.9030007@opencloud.com> In-Reply-To: <4318D622.9030007@opencloud.com> X-Enigmail-Version: 0.90.2.0 X-Enigmail-Supports: pgp-inline, pgp-mime 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.008 required=5 tests=[AWL=0.008] X-Spam-Level: X-Archive-Number: 200509/18 X-Sequence-Number: 13803 Oliver Jowett wrote: > Andres Olarte wrote: > >>I recently updated the driver to the latest CVS version, and found a >>change in the way parameters are handled. Before, the first parameter >>was 1, as in: >> >>update.setInt(1,cbid); >> >>But now it's 2, as in: >> >>update.setInt(2,cbid); >> >>I'm using only IN parameters to call a prepared SELECT. Is this the >>correct behaviour? Is it going to stay this way? > > > This sounds like a bug -- can you provide a more detailed testcase? Per off-list discussion this seems to be a bug that affects non-{call} queries prepared via prepareCall() only; if prepareStatement() is used, it works fine. I haven't dug deeper, but perhaps this is a bug introduced by the OUT parameter support. -O