Skip site navigation (1) Skip section navigation (2)

In what jar is org.postgresql.Connection ?

From: "Carlos Ho Shih Ning" <cning(at)atech(dot)br>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: In what jar is org.postgresql.Connection ?
Date: 2003-11-05 14:35:12
Message-ID: 09B2A867E595294DB69E2C8885647EEC823532@xingu.atech.local.br (view raw or flat)
Thread:
Lists: pgsql-jdbc
Hi, 
The trouble is that I canĀ“t find the org.postgresql.Connection class in posgresql.jar nor in PostgreSQL\jdbc3.jar 
Could you please give me a hint where I could find it or related resources? 
I am trying to run an example with the following excerpt: 
Class.forName("org.postgresql.Driver");
String url = "jdbc:postgresql://" + dbhost + ":" + dbport + "/" + dbname;
conn = DriverManager.getConnection(url, dbuser, dbpass);
System.out.println("Adding geometric type entries...");
((org.postgresql.Connection)conn).addDataType("geometry","org.postgis.PGgeometry");
((org.postgresql.Connection)conn).addDataType("box3d","org.postgis.PGbox3d");
found in postgis-0.7.5 
Thanks in advance 
Carlos


Responses

pgsql-jdbc by date

Next:From: Jean-Michel ZignaDate: 2003-11-05 17:02:46
Subject: system catalog
Previous:From: Jan SlivkaDate: 2003-11-05 14:28:04
Subject: ResultSetMetaData.isNullable() returns always unknown status

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group