Re: Anoter JDBC Error - Mailing list pgsql-jdbc

From Kris Jurka
Subject Re: Anoter JDBC Error
Date
Msg-id Pine.LNX.4.33.0210111908300.2952-200000@leary.csoft.net
Whole thread Raw
In response to Anoter JDBC Error  (Aaron Mulder <ammulder@alumni.princeton.edu>)
List 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
>

Attachment

pgsql-jdbc by date:

Previous
From: Nic Ferrier
Date:
Subject: Re: Out of memory error on huge resultset
Next
From: Nic Ferrier
Date:
Subject: Re: Out of memory error on huge resultset