Re: closing statements when connection is closed

From: "Iain" <iain(at)mst(dot)co(dot)jp>
To: <pgsql-jdbc(at)postgresql(dot)org>
Subject: Re: closing statements when connection is closed
Date: 2004-02-10 05:51:01
Message-ID: 001d01c3ef99$dcdbc150$7201a8c0@mst1x5r347kymb
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

(I forgot to CC the list)
----- Original Message -----
From: "Iain" <iain(at)mst(dot)co(dot)jp>
To: <EAdelaRosa(at)smart(dot)com(dot)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
>

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Iain 2004-02-10 07:58:54 Re: closing statements when connection is closed
Previous Message Iain 2004-02-10 04:53:53 Re: closing statements when connection is closed