AbstractJdbc1DatabaseMetaData.getColumns doesn't set DECIMAL_DIGITS

From: Florian Wunderlich <fwunderlich(at)devbrain(dot)de>
To: pgsql-jdbc(at)postgresql(dot)org
Subject: AbstractJdbc1DatabaseMetaData.getColumns doesn't set DECIMAL_DIGITS
Date: 2002-10-21 17:06:30
Message-ID: 3DB43416.8A2C40CA@hq.factor3.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: 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.

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message David Hooker 2002-10-21 19:24:39 URGENT: Help with exception
Previous Message Sean Liu 2002-10-21 15:20:33 Re: null: was is the default returned value?