Re: Connection.setBytes()

Поиск
Список
Период
Сортировка
От Joachim Achtzehnter
Тема Re: Connection.setBytes()
Дата
Msg-id Pine.WNT.4.21.0007181243590.131-100000@van4
обсуждение исходный текст
Ответ на Re: Connection.setBytes()  (Matt Fair <matt@netasol.com>)
Список pgsql-interfaces
On Tue, 18 Jul 2000, Matt Fair wrote:
>
> Here is the code I am using:
> 
>     public PsqlConsole(String url) {
>         try{
>             ... 
>             con = DriverManager.getConnection("jdbc:postgr...");
>             con.setAutoCommit(false);
>         }
>         catch(ClassNotFoundException e) {
>             ...
>         }
>         catch(SQLException e) {
>             ...
>         }
>         finally {
>             //always close the database
>             try {
>                 if(con != null) con.close();

This closes the connection! Once this method returns your connection is
closed. Your subsequent SQL calls in the prompt() method use a closed
connection.

Joachim



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

Предыдущее
От: ChristophSchmidt
Дата:
Сообщение: Re: Connection.setBytes()
Следующее
От: Joachim Achtzehnter
Дата:
Сообщение: Re: Connection.setBytes()