You are viewing a plain text version of this content. The canonical link for it is here.
Posted to derby-commits@db.apache.org by my...@apache.org on 2006/11/20 16:51:52 UTC
svn commit: r477228 -
/db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java
Author: myrnavl
Date: Mon Nov 20 07:51:49 2006
New Revision: 477228
URL: http://svn.apache.org/viewvc?view=rev&rev=477228
Log:
DERBY-1108 - jdbcapi/setTransactionIsolation.java fails with ibm jvm 1.5
like revision 429837 - adding a rs.next so the resultset will not get gc-ed too soon
Modified:
db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java
Modified: db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java
URL: http://svn.apache.org/viewvc/db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java?view=diff&rev=477228&r1=477227&r2=477228
==============================================================================
--- db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java (original)
+++ db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java Mon Nov 20 07:51:49 2006
@@ -185,6 +185,7 @@
// setTransactionIsolation should fail because we have
// a holdable cursor open
conn.setTransactionIsolation(java.sql.Connection.TRANSACTION_SERIALIZABLE);
+ rs.next(); // to fix DERBY-1108. Else the GC for ibm15 will clean up the ResultSet Object
} catch (SQLException se)
{
System.out.println("EXPECTED EXCEPTION SQLSTATE:" +