From: Oliver Jowett <oliver@opencloud.com>
To: pg@fastcrypt.com
Cc: andreas.percher@automedia.de
Cc: pgsql-jdbc@postgresql.org <pgsql-jdbc@postgresql.org>
Subject: Re: Columns out of range-error
Date: Sun, 22 Aug 2004 12:33:28 +1200
Message-ID: <4127E9D8.3090100@opencloud.com> (raw)
In-Reply-To: <1093104187.20387.84.camel@localhost.localdomain>
References: <000101c486c7$410b4cd0$1600a8c0@developer>
<4126B0EE.2070900@opencloud.com>
<1093104187.20387.84.camel@localhost.localdomain>
Dave Cramer wrote:
> Oliver,
>
> This should throw an error if you try to setXXX(n,obj) if n is greater
> than the number of parameters you have?
On a PreparedStatement? That throws postgresql.prep.range not
postgresql.res.colrange.
The ResultSet.updateXXX() methods would be the other place I would
expect an exception to be thrown from, but I looked at them just now and
they seem to do no range checking at all -- you'll just get an
ArrayIndexOutOfBoundsException!
-O
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, pg@fastcrypt.com, andreas.percher@automedia.de
Subject: Re: Columns out of range-error
In-Reply-To: <4127E9D8.3090100@opencloud.com>
References: <000101c486c7$410b4cd0$1600a8c0@developer> <4126B0EE.2070900@opencloud.com> <1093104187.20387.84.camel@localhost.localdomain> <4127E9D8.3090100@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