AbstractJdbc1DatabaseMetaData.getColumns doesn't set DECIMAL_DIGITS - Mailing list pgsql-jdbc

From Florian Wunderlich
Subject AbstractJdbc1DatabaseMetaData.getColumns doesn't set DECIMAL_DIGITS
Date
Msg-id 3DB43416.8A2C40CA@hq.factor3.com
Whole thread Raw
List pgsql-jdbc
In the CVS, getColumns in AbstractJdbc1DatabaseMetaData.java:2257 does
not set DECIMAL_DIGITS for types other than "numeric" and "decimal".

A subsequent ResultSet.getInt for this column then fails with a
java.lang.StringIndexOutOfBoundsException.

The JDBC API documentation seems to indicate that this field should
always be an int. In any case, ResultSet.getInt should not fail.

pgsql-jdbc by date:

Previous
From: Sean Liu
Date:
Subject: Re: null: was is the default returned value?
Next
From: "David Hooker"
Date:
Subject: URGENT: Help with exception