Re: Re: PostgreSQL JDBC

Поиск
Список
Период
Сортировка
От Peter Mount
Тема Re: Re: PostgreSQL JDBC
Дата
Msg-id 5.0.2.1.0.20010224170406.00a9fa50@mail.retep.org.uk
обсуждение исходный текст
Ответ на PostgreSQL JDBC  ("Andy Engdahl" <andy@crophailmanagement.com>)
Список 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




В списке pgsql-hackers по дате отправления:

Предыдущее
От: Tatsuo Ishii
Дата:
Сообщение: pgaccess Japanese input capability patch
Следующее
От: Adam Haberlach
Дата:
Сообщение: pg_atoi() behavior change? Intentional?