Re: Buildfarm: Test errors - StackOverFlowError - Mailing list pgsql-jdbc

From Mike Fowler
Subject Re: Buildfarm: Test errors - StackOverFlowError
Date
Msg-id 4E8A29B2.5030901@mlfowler.com
Whole thread Raw
In response to Buildfarm: Test errors - StackOverFlowError  ("Mike Fowler" <mike@mlfowler.com>)
List pgsql-jdbc
On 03/10/11 16:01, I wrote:

>
> [junit] java.lang.StackOverflowError
> [junit]     at
> org.postgresql.jdbc2.TypeInfoCache.getPGType(TypeInfoCache.java:270)
> [junit]     at
> org.postgresql.jdbc2.TypeInfoCache.getSQLType(TypeInfoCache.java:176)
> [junit]     at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getSQLType(AbstractJdbc2ResultSet.java:2776)
> [junit]     at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getString(AbstractJdbc2ResultSet.java:1920)
> [junit]     at
> org.postgresql.jdbc2.AbstractJdbc2ResultSet.getFixedString(AbstractJdbc2ResultSet.java:2736)
> [junit]     at
> org.postgresql.jdbc3g.Jdbc3gResultSet.createArray(Jdbc3gResultSet.java:59)
> [junit]     at

The tests run for 1.6 but not 1.5 or 1.4. Turns out some code has been
added for the binary handling in Jdbc4Array and Jdbc4ResultSet that also
needed to be added to Jdbc3Array, Jdbc3ResultSet, Jdbc3gArray and
Jdbc3gReultSet. If you take out the different code in the 4 code you get
the same StackOverflowError. The attached patch resolves this.

Regards,
--
Mike Fowler
Registered Linux user: 379787

The Call for Papers for is open for FLOSS UK, contact postgresql2012 AT
flossuk DOT org for details.

Attachment

pgsql-jdbc by date:

Previous
From: "Mike Fowler"
Date:
Subject: Buildfarm: Test errors - StackOverFlowError
Next
From: Craig Ringer
Date:
Subject: Re: OpenJPA problems running against PG 8.1