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

Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed

From: "Kevin Grittner" <Kevin(dot)Grittner(at)wicourts(dot)gov>
To: <taktos(at)gmail(dot)com>,<pgsql-bugs(at)postgresql(dot)org>
Subject: Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed
Date: 2009-10-20 14:19:27
Message-ID: 4ADD809F020000250002BB8D@gw.wicourts.gov (view raw or flat)
Thread:
Lists: pgsql-bugs
<taktos(at)gmail(dot)com> wrote:
 
> If PostgreSQL server is restarted, old Connection pooled in
> Application server's ConnectionPool cannot connect to DB.
> That's OK. 
> But, I can call rollback() on old Connection and it throws no
> exception.
 
Hmmm....   What problem are you having?  The transaction would have
been rolled back when the server was restarted (or if the connection
was broken).  What benefit would you get from the exception you
suggest?
 
-Kevin

In response to

Responses

pgsql-bugs by date

Next:From: Tom LaneDate: 2009-10-20 14:48:31
Subject: Re: Re: BUG #5065: pg_ctl start fails as administrator, with "could not locate matching postgres executable"
Previous:From: taktosDate: 2009-10-20 09:45:19
Subject: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed

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