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 21406D7D87 for ; Fri, 2 Sep 2005 19:45:59 -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 89862-06 for ; Fri, 2 Sep 2005 22:45:54 +0000 (GMT) Received: from yass.opencloud.co.nz (yass.opencloud.co.nz [203.79.85.162]) by svr1.postgresql.org (Postfix) with ESMTP id C8182D791E for ; Fri, 2 Sep 2005 19:45:53 -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 1EBKIE-00073E-Lb; Sat, 03 Sep 2005 10:45:54 +1200 Message-ID: <4318D622.9030007@opencloud.com> Date: Sat, 03 Sep 2005 10:45:54 +1200 From: Oliver Jowett User-Agent: Mozilla Thunderbird 1.0.2 (X11/20050324) X-Accept-Language: en-us, en MIME-Version: 1.0 To: Andres Olarte Cc: pgsql-jdbc@postgresql.org Subject: Re: Change in parameters' order in prepared statement?? References: <3fccaa69050902153329b4947@mail.gmail.com> In-Reply-To: <3fccaa69050902153329b4947@mail.gmail.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/15 X-Sequence-Number: 13800 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? -O