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

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

From: "" <taktos(at)gmail(dot)com>
To: pgsql-bugs(at)postgresql(dot)org
Subject: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed
Date: 2009-10-20 09:45:19
Message-ID: 200910200945.n9K9jJFj086905@wwwmaster.postgresql.org (view raw or flat)
Thread:
Lists: pgsql-bugs
The following bug has been logged online:

Bug reference:      5127
Logged by:          
Email address:      taktos(at)gmail(dot)com
PostgreSQL version: 8.3.7
Operating system:   CentOS 5.1
Description:        AbstractJdbc2Connection#doRollback should throws
Exception if connection is closed
Details: 

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.
(I've set autocommit to false and ProtocolConnection#getTransactionState
returns 0)

It's fault. Rollback() should fail (throw exception) because JDBC connection
could not execute rollback.

Responses

pgsql-bugs by date

Next:From: Kevin GrittnerDate: 2009-10-20 14:19:27
Subject: Re: BUG #5127: AbstractJdbc2Connection#doRollback should throws Exception if connection is closed
Previous:From: Dave PageDate: 2009-10-20 08:54:18
Subject: Re: Re: BUG #5065: pg_ctl start fails as administrator, with "could not locate matching postgres executable"

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