pg.ddx.io  pgsql-jdbc@postgresql.org mailing list archive  
help / color / mirror / Atom feed
From: Oliver Jowett <oliver@opencloud.com>
To: pgsql-jdbc@postgresql.org
Subject: Re: Change in parameters' order in prepared statement??
Date: Sun, 04 Sep 2005 17:44:43 +1200
Message-ID: <431A89CB.7040201@opencloud.com> (raw)
In-Reply-To: <4318D622.9030007@opencloud.com>
References: <3fccaa69050902153329b4947@mail.gmail.com>
	<4318D622.9030007@opencloud.com>

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



view thread (3+ messages)

Message-ID: <431A89CB.7040201@opencloud.com>
Permalink:  ../431A89CB.7040201@opencloud.com/
Also on:    postgresql.org/message-id/431A89CB.7040201@opencloud.com

 · 

reply

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Reply to all the recipients from your mail client; the link fills in
  the headers below: reply via email
  Some clients, webmail especially, drop In-Reply-To and References from
  a link, and the reply then starts a new thread: use the mbox below.

  To: pgsql-jdbc@postgresql.org
  Cc: oliver@opencloud.com
  Subject: Re: Change in parameters' order in prepared statement??
  In-Reply-To: <431A89CB.7040201@opencloud.com>
  References: <3fccaa69050902153329b4947@mail.gmail.com> <4318D622.9030007@opencloud.com> <431A89CB.7040201@opencloud.com>

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox