Re: Columns out of range-error

Поиск
Список
Период
Сортировка
От Oliver Jowett
Тема Re: Columns out of range-error
Дата
Msg-id 4127E9D8.3090100@opencloud.com
обсуждение исходный текст
Ответ на Re: Columns out of range-error  (Dave Cramer <pg@fastcrypt.com>)
Список 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 по дате отправления:

Предыдущее
От: Dave Cramer
Дата:
Сообщение: Re: Columns out of range-error
Следующее
От: qleseney@free.fr
Дата:
Сообщение: Documentation encoding mismatch