]> granicus.if.org Git - postgis/commitdiff
#609 revise JDBC to use non-deprecated calling syntax
authorRegina Obe <lr@pcorp.us>
Mon, 13 Jun 2011 11:25:09 +0000 (11:25 +0000)
committerRegina Obe <lr@pcorp.us>
Mon, 13 Jun 2011 11:25:09 +0000 (11:25 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@7384 b70326c6-7e19-0410-871a-916f4a2858ee

doc/using_postgis_app.xml

index 3c62f4c00a1eb1ea63524e075ee3725d34c9771d..b161e10db2bc72e561073dc2c1c57303c76b1c21 100644 (file)
@@ -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. 
     */