[hibernate-commits] Hibernate SVN: r15731 - core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/stats.

hibernate-commits at lists.jboss.org hibernate-commits at lists.jboss.org
Fri Dec 26 18:42:56 EST 2008


Author: gbadner
Date: 2008-12-26 18:42:56 -0500 (Fri, 26 Dec 2008)
New Revision: 15731

Modified:
   core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/stats/StatsTest.java
Log:
HHH-3675 - Limitations on Sybase ResultSet implementation causes unit test failures


Modified: core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/stats/StatsTest.java
===================================================================
--- core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/stats/StatsTest.java	2008-12-26 23:19:25 UTC (rev 15730)
+++ core/branches/Branch_3_2_4_SP1_CP/test/org/hibernate/test/stats/StatsTest.java	2008-12-26 23:42:56 UTC (rev 15731)
@@ -165,6 +165,11 @@
 		// same deal with scroll()...
 		assertEquals( "unexpected execution count", 3, continentStats.getExecutionCount() );
 		assertEquals( "unexpected row count", results, continentStats.getExecutionRowCount() );
+		// scroll through data because Sybase throws NullPointerException
+		// if data is not read before closing the ResultSet
+		while ( scrollableResults.next() ) {
+			// do nothing
+		}
 		scrollableResults.close();
 		tx.commit();
 		s.close();




More information about the hibernate-commits mailing list