From: Mike Fowler <mike@mlfowler.com>
To: Dave Cramer <pg@fastcrypt.com>
Cc: Mike Fowler <mike@mlfowler.com>
Cc: pgsql-jdbc@postgresql.org
Subject: Re: Further Buildfarm Errors: Missing org.postgresql.util.PGBinaryObject
Date: Tue, 27 Sep 2011 12:05:10 +0100
Message-ID: <049be00bdb38281e75952985b7b311db.squirrel@www.mlfowler.com> (raw)
In-Reply-To: <CADK3HHJ7uSbmRAAfQoNn-+R5HOsrn_5YrHnwmQH2Q3K0nv--yA@mail.gmail.com>
References: <e596fb45bdc020cbd7aa39d3d3bcd1f7.squirrel@www.mlfowler.com>
<CADK3HHJ7uSbmRAAfQoNn-+R5HOsrn_5YrHnwmQH2Q3K0nv--yA@mail.gmail.com>
> OK, just committed.
>
Thanks! I've run the three compilers and both 1.5 and 1.6 are now building
cleanly. I uncovered a handful of 1.4 compatability problems so I've
attached a patch that makes it all compile clean on all three jdks. The
full regression tests against 8.4,9.0,9.1 and HEAD will kick off later
today.
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.
Attachments:morejdk1.4.patch (application/octet-stream, 2.7K) download
Index: org/postgresql/jdbc2/AbstractJdbc2Array.java
===================================================================
RCS file: /cvsroot/jdbc/pgjdbc/org/postgresql/jdbc2/AbstractJdbc2Array.java,v
retrieving revision 1.27
diff -c -r1.27 AbstractJdbc2Array.java
*** org/postgresql/jdbc2/AbstractJdbc2Array.java 26 Sep 2011 12:52:30 -0000 1.27
--- org/postgresql/jdbc2/AbstractJdbc2Array.java 27 Sep 2011 10:58:51 -0000
***************
*** 19,25 ****
import java.math.BigDecimal;
import java.sql.ResultSet;
import java.sql.SQLException;
- import java.sql.SQLFeatureNotSupportedException;
import java.sql.Types;
import java.util.ArrayList;
import java.util.Map;
--- 19,24 ----
***************
*** 213,231 ****
}
switch (elementOid) {
case Oid.INT2:
! arr[i] = ByteConverter.int2(fieldBytes, pos);
break;
case Oid.INT4:
! arr[i] = ByteConverter.int4(fieldBytes, pos);
break;
case Oid.INT8:
! arr[i] = ByteConverter.int8(fieldBytes, pos);
break;
case Oid.FLOAT4:
! arr[i] = ByteConverter.float4(fieldBytes, pos);
break;
case Oid.FLOAT8:
! arr[i] = ByteConverter.float8(fieldBytes, pos);
break;
case Oid.TEXT:
case Oid.VARCHAR:
--- 212,230 ----
}
switch (elementOid) {
case Oid.INT2:
! arr[i] = new Short(ByteConverter.int2(fieldBytes, pos));
break;
case Oid.INT4:
! arr[i] = new Integer(ByteConverter.int4(fieldBytes, pos));
break;
case Oid.INT8:
! arr[i] = new Long(ByteConverter.int8(fieldBytes, pos));
break;
case Oid.FLOAT4:
! arr[i] = new Float(ByteConverter.float4(fieldBytes, pos));
break;
case Oid.FLOAT8:
! arr[i] = new Double(ByteConverter.float8(fieldBytes, pos));
break;
case Oid.TEXT:
case Oid.VARCHAR:
***************
*** 333,339 ****
}
private Class elementOidToClass(int oid)
! throws SQLFeatureNotSupportedException {
switch (oid) {
case Oid.INT2:
return Short.class;
--- 332,338 ----
}
private Class elementOidToClass(int oid)
! throws SQLException {
switch (oid) {
case Oid.INT2:
return Short.class;
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Reply to all the recipients from your mail client; the link fills in
the headers below: reply via email
Some clients, webmail especially, drop In-Reply-To and References from
a link, and the reply then starts a new thread: use the mbox below.
To: pgsql-jdbc@postgresql.org
Cc: mike@mlfowler.com, pg@fastcrypt.com
Subject: Re: Further Buildfarm Errors: Missing org.postgresql.util.PGBinaryObject
In-Reply-To: <049be00bdb38281e75952985b7b311db.squirrel@www.mlfowler.com>
References: <e596fb45bdc020cbd7aa39d3d3bcd1f7.squirrel@www.mlfowler.com> <CADK3HHJ7uSbmRAAfQoNn-+R5HOsrn_5YrHnwmQH2Q3K0nv--yA@mail.gmail.com> <049be00bdb38281e75952985b7b311db.squirrel@www.mlfowler.com>
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
This inbox is served by DDX for PostgreSQL; see mirroring instructions
for how to clone and mirror all data and code used for this inbox