Skip site navigation (1) Skip section navigation (2)

Change in parameters' order in prepared statement??

From: Andres Olarte <olarte(dot)andres(at)gmail(dot)com>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: Change in parameters' order in prepared statement??
Date: 2005-09-02 22:33:57
Message-ID: 3fccaa69050902153329b4947@mail.gmail.com (view raw or flat)
Thread:
Lists: pgsql-jdbc
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?

Responses

pgsql-jdbc by date

Next:From: Oliver JowettDate: 2005-09-02 22:45:54
Subject: Re: Change in parameters' order in prepared statement??
Previous:From: leonDate: 2005-09-02 16:30:24
Subject: recommendation on bytea or blob for binary data like images

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group