Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group