mirror of
https://git.osgeo.org/gitea/postgis/postgis
synced 2024-10-23 08:32:42 +00:00
#609 revise JDBC to use non-deprecated calling syntax
git-svn-id: http://svn.osgeo.org/postgis/trunk@7384 b70326c6-7e19-0410-871a-916f4a2858ee
This commit is contained in:
parent
2f1a72e107
commit
aef4713a15
|
@ -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.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue