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

Re: Re: PostgreSQL JDBC

From: Peter Mount <peter(at)retep(dot)org(dot)uk>
To: Jeff Duffy <jduffy(at)greatbridge(dot)com>, Andy Engdahl <andy(at)crophailmanagement(dot)com>
Cc: pgsql-hackers(at)postgresql(dot)org
Subject: Re: Re: PostgreSQL JDBC
Date: 2001-02-24 17:04:59
Message-ID: 5.0.2.1.0.20010224170406.00a9fa50@mail.retep.org.uk (view raw or flat)
Thread:
Lists: pgsql-hackers
At 13:05 23/02/01 -0500, Jeff Duffy wrote:
>On Fri, 23 Feb 2001, Andy Engdahl wrote:
>
> > I seem to be having some problems w/ the psql jdbc driver.  I'm able to 
> load the driver, but as soon as I try to connect w/ the database. here's 
> my code:
> >
> > import java.sql.*;
> >
> > public class dataBase {
> >     public static void main(String [] args){
> >         try {
> >             Class.forName("org.postgresql.DriverClass").newInstance();
>
>  The class instance will load successfully, but this isn't what you
>want. Replace org.postgresql.DriverClass with org.postgresql.Driver.


I'd also remove the newInstance() as it will create a second object that 
will just occupy memory (the class has a static initialiser).

Peter



In response to

pgsql-hackers by date

Next:From: Adam HaberlachDate: 2001-02-24 18:18:10
Subject: pg_atoi() behavior change? Intentional?
Previous:From: Tom LaneDate: 2001-02-24 16:41:06
Subject: Re: A patch for xlog.c

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