db-derby-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From myrn...@apache.org
Subject svn commit: r477228 - /db/derby/code/branches/10.1/java/testing/org/apache/derbyTesting/functionTests/tests/jdbcapi/setTransactionIsolation.java
Date Mon, 20 Nov 2006 15:51:52 GMT
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:" + 



Mime
View raw message