Re: Columns out of range-error - Mailing list pgsql-jdbc

From Oliver Jowett
Subject Re: Columns out of range-error
Date
Msg-id 4127E9D8.3090100@opencloud.com
Whole thread Raw
In response to Re: Columns out of range-error  (Dave Cramer <pg@fastcrypt.com>)
List pgsql-jdbc
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

pgsql-jdbc by date:

Previous
From: Dave Cramer
Date:
Subject: Re: Columns out of range-error
Next
From: qleseney@free.fr
Date:
Subject: Documentation encoding mismatch