From: Regina Obe Date: Mon, 13 Jun 2011 11:25:09 +0000 (+0000) Subject: #609 revise JDBC to use non-deprecated calling syntax X-Git-Tag: 2.0.0alpha1~1438 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=aef4713a152d8824d8eefd6a0d546ba19ae7a59b;p=postgis #609 revise JDBC to use non-deprecated calling syntax git-svn-id: http://svn.osgeo.org/postgis/trunk@7384 b70326c6-7e19-0410-871a-916f4a2858ee --- 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. */