Skip site navigation (1) Skip section navigation (2)

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 (view raw or flat)
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

pgsql-jdbc by date

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

Privacy Policy | About PostgreSQL
Copyright © 1996-2014 The PostgreSQL Global Development Group