]> granicus.if.org Git - postgresql/commit
Attached is a patch that fixes
authorBruce Momjian <bruce@momjian.us>
Mon, 10 Sep 2001 14:54:22 +0000 (14:54 +0000)
committerBruce Momjian <bruce@momjian.us>
Mon, 10 Sep 2001 14:54:22 +0000 (14:54 +0000)
commitc69bb04acc13e0c1aa4e0b5e7910f6850d71173b
treeb5391a764ce62960444f50da97f6c7cb0fa791a4
parentd70a944e0a54a08586ec8296d9abaf7cb52a9db2
Attached is a patch that fixes
ConnectionTest.testTransactionIsolation() in the JDBC driver's
test suite. This reduces the number of failures of the test
suite from 7 to 6. The patch fixes the test case itself, rather
than the driver.

In addition to the change described in my posting below, I fixed
the part of the test with autocommit enabled. The author of the
test assumed that setting the transaction isolation level would
have no effect, but in fact it does. Perhaps the test case
worked with pre-7.1 behaviour, when the JDBC driver set the
isolation level in every transaction, instead of using "set
session characteristics". Anyway, now it works with a backend
built from current CVS and the behaviour is JDBC compliant.

I also extended the test case by changing the isolation level
before beginning a transaction and verifying it inside the
transaction.

Regards,
Ren? Pijlman
src/interfaces/jdbc/org/postgresql/test/jdbc2/ConnectionTest.java