Re: commit and rollback don't throw exceptions when they should

From: taktos <taktos(at)gmail(dot)com>
To: Oliver Jowett <oliver(at)opencloud(dot)com>
Cc: Kevin Grittner <Kevin(dot)Grittner(at)wicourts(dot)gov>, pgsql-jdbc(at)postgresql(dot)org
Subject: Re: commit and rollback don't throw exceptions when they should
Date: 2009-10-22 07:00:38
Message-ID: 4AE00316.8030107@gmail.com
Views: Raw Message | Whole Thread | Download mbox | Resend email
Thread:
Lists: pgsql-jdbc

I made a groovy code that tests whether Connection#commit() throws
excepton when connection has been closed.

http://github.com/taktos/JDBC-Driver-Test/blob/master/ConnectionTest.groovy

I tested in environment below:
Oracle 10g XE (ojdbc14.jar and ojdbc6.jar)
MySQL 5.1 (mysql-connector-java-5.1.10.jar)
h2database (h2-1.2.121.jar)
PostgreSQL 8.3 (postgresql-8.3.605.jdbc4.jar)

Drivers other than PosrgreSQL throws exception as I had expected, but
PostgreSQL didn't throw exception.

Regards,
takiguchi

In response to

Responses

Browse pgsql-jdbc by date

  From Date Subject
Next Message Oliver Jowett 2009-10-22 08:22:36 Re: commit and rollback don't throw exceptions when they should
Previous Message Steve Waldman 2009-10-22 06:03:07 deadlocks on JDBC batch inserts into tables with many columns