RE: PG6.5 + JDBC + Linux + Kaffe

Поиск
Список
Период
Сортировка
От Jon Nielsen
Тема RE: PG6.5 + JDBC + Linux + Kaffe
Дата
Msg-id 010801bebda4$12029d40$ca0ba8c0@bilbo
обсуждение исходный текст
Ответ на PG6.5 + JDBC + Linux + Kaffe  (Daniele Orlandi <daniele@orlandi.com>)
Список pgsql-interfaces
Hi Daniele,
 
Your example does not work for two reasons:
 
1)
Your call to DriverManager is incorrect.
The correct form is either
  Connection db = DriverManager.getConnection("jdbc:postgresql:DATABASE","USER","PASSWORD");
or
  Connection db = DriverManager.getConnection("jdbc:postgresql://MACHINE/DATABASE","USER","PASSWORD");
 
 
2)
There is a bug in the 'error.properties' file which causes the JDBC driver not to return the correct error messages.
 
You can fix this yourself, by changing {1} to {0}, and {2} to {1} and so on. Then you should get the correct error message.
 
 
Hope that helps you
 
Jon Nielsen

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

Предыдущее
От: "Jon Nielsen"
Дата:
Сообщение: RE: PG6.5 + JDBC + Linux + Kaffe
Следующее
От: Craig Orsinger
Дата:
Сообщение: Re: [INTERFACES] Trying to get started?