Re: JDBC prob. Continued

Поиск
Список
Период
Сортировка
От Christopher Farley
Тема Re: JDBC prob. Continued
Дата
Msg-id Pine.BSF.4.21.0011161505570.11653-100000@kraeusen.nbrewer.com
обсуждение исходный текст
Ответ на JDBC prob. Continued  ("tony" <tony@uickarate.com>)
Список pgsql-interfaces
> so I've changed by getConnection to
> DriverManager.getConnection("jdbc:postgresql:database_name", "postgres",
> "password");

The above URL is not correct, it should be
jdbc:postgresql://localhost:5432/database_name

Note the two slashes after jdbc:postgresql:

I am not sure if localhost:5432 is required, but it won't hurt.

----
Christopher Farley
Northern Brewer / 1150 Grand Avenue / St. Paul, MN 55105
www.northernbrewer.com    





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

Предыдущее
От: Bruce Momjian
Дата:
Сообщение: Re: [BUGS] no meaningful way to determine fe or be version?
Следующее
От: "Michael Miyabara-McCaskey"
Дата:
Сообщение: ODBC Windows driver corrupts data?