Re: Anoter JDBC Error

Поиск
Список
Период
Сортировка
От Kris Jurka
Тема Re: Anoter JDBC Error
Дата
Msg-id Pine.LNX.4.33.0210111908300.2952-200000@leary.csoft.net
обсуждение исходный текст
Ответ на Anoter JDBC Error  (Aaron Mulder <ammulder@alumni.princeton.edu>)
Список pgsql-jdbc
This is doing a getInt on a field with a value of the empty string.  The
application will still get an error after this patch, but it will be more
obvious where the error is coming from.

This patch also fixes a problem when retrieving negative monetary values.

On Wed, 9 Oct 2002, Aaron Mulder wrote:

>     Haven't had a chance to look into this one yet -- came up in
> DBVis, while looking for the columns for a new table, so it's probably
> another DBMD query.  Something assuming a String won't be empty?
>
> java.lang.StringIndexOutOfBoundsException: String index out of range: 0
>     at java.lang.String.charAt(String.java:460)
>     at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getFixedString(AbstractJdbc1ResultSet.java:650)
>     at org.postgresql.jdbc1.AbstractJdbc1ResultSet.getInt(AbstractJdbc1ResultSet.java:144)
>
>     BTW, thanks for the ' fix.
>
> Aaron
>
>
> ---------------------------(end of broadcast)---------------------------
> TIP 3: if posting/reading through Usenet, please send an appropriate
> subscribe-nomail command to majordomo@postgresql.org so that your
> message can get through to the mailing list cleanly
>

Вложения

В списке pgsql-jdbc по дате отправления:

Предыдущее
От: Nic Ferrier
Дата:
Сообщение: Re: Out of memory error on huge resultset
Следующее
От: Nic Ferrier
Дата:
Сообщение: Re: Out of memory error on huge resultset