[postgis-devel] building jdbc against 8.0 jdbc driver fails
Kris Jurka
books at ejurka.com
Tue Oct 5 15:23:16 PDT 2004
Trying to build the jdbc portion of postgis fails when compiling against
the 8.0 jdbc driver. The code is trying to throw an
org.postgresql.util.PSQLException in the case of an invalid point. The
constructor for this object has changed in the latest driver release and
was never meant to be used by external projects. This change uses the
standard java.sql.SQLException instead.
Kris Jurka
-------------- next part --------------
? org/postgis/Geometry.class
? org/postgis/LineString.class
? org/postgis/LinearRing.class
? org/postgis/MultiLineString.class
? org/postgis/MultiPoint.class
? org/postgis/MultiPolygon.class
? org/postgis/PGbox3d.class
? org/postgis/PGgeometry.class
? org/postgis/Point.class
? org/postgis/Polygon.class
Index: org/postgis/Point.java
===================================================================
RCS file: /home/cvs/postgis/postgis/jdbc/org/postgis/Point.java,v
retrieving revision 1.1.1.1
diff -c -r1.1.1.1 Point.java
*** org/postgis/Point.java 22 Jun 2001 17:39:30 -0000 1.1.1.1
--- org/postgis/Point.java 5 Oct 2004 22:13:49 -0000
***************
*** 69,75 ****
}
}
catch(NumberFormatException e) {
! throw new PSQLException("postgis.Point",e.toString());
}
}
--- 69,75 ----
}
}
catch(NumberFormatException e) {
! throw new SQLException("postgis.Point: " + e.toString());
}
}
More information about the postgis-devel
mailing list