From aef4713a152d8824d8eefd6a0d546ba19ae7a59b Mon Sep 17 00:00:00 2001 From: Regina Obe Date: Mon, 13 Jun 2011 11:25:09 +0000 Subject: [PATCH] #609 revise JDBC to use non-deprecated calling syntax git-svn-id: http://svn.osgeo.org/postgis/trunk@7384 b70326c6-7e19-0410-871a-916f4a2858ee --- doc/using_postgis_app.xml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc/using_postgis_app.xml b/doc/using_postgis_app.xml index 3c62f4c00..b161e10db 100644 --- a/doc/using_postgis_app.xml +++ b/doc/using_postgis_app.xml @@ -470,8 +470,8 @@ public static void main(String[] args) { * must cast the connection to the pgsql-specific connection * implementation before calling the addDataType() method. */ - ((org.postgresql.PGConnection)conn).addDataType("geometry","org.postgis.PGgeometry"); - ((org.postgresql.PGConnection)conn).addDataType("box3d","org.postgis.PGbox3d"); + ((org.postgresql.PGConnection)conn).addDataType("geometry",Class.forName("org.postgis.PGgeometry")); + ((org.postgresql.PGConnection)conn).addDataType("box3d",Class.forName("org.postgis.PGbox3d")); /* * Create a statement and execute a select query. */ -- 2.50.1