Re: closing statements when connection is closed

Поиск
Список
Период
Сортировка
От Iain
Тема Re: closing statements when connection is closed
Дата
Msg-id 001d01c3ef99$dcdbc150$7201a8c0@mst1x5r347kymb
обсуждение исходный текст
Ответ на closing statements when connection is closed  (Dave Cramer <pg@fastcrypt.com>)
Список pgsql-jdbc
(I forgot to CC the list)
----- Original Message -----
From: "Iain" <iain@mst.co.jp>
To: <EAdelaRosa@smart.com.ph>
Sent: Tuesday, February 10, 2004 2:49 PM
Subject: Re: [JDBC] closing statements when connection is closed


> > Could you post the exact compile time error for this particular block?
> > You may be forgetting to enclose the close() method further
> > in a try-catch block :)
>
> The message was some complaint that the variable might not be initialized.
>
> It created the situation where I couldn't close the statement if there was
> an exception. I think I understand what you mean though, I need to put the
> close() statement in a second try block after the one the caused the
error?
> Or just use a try close block nested in the first catch block. I'll give
it
> a try.
>
> I'll dig up the code and the message for you. I'll have to switch my
windows
> setting back to English though - unless you can read Japanese (I can't but
I
> still have to work with it - if I switch my windows language setting to
> English then my other M$ apps don't work correctly :-( )
>
> Thanks
> iain
>


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

Предыдущее
От: "Iain"
Дата:
Сообщение: Re: closing statements when connection is closed
Следующее
От: "Iain"
Дата:
Сообщение: Re: closing statements when connection is closed