From c89d869ffc1667b0bd4a4c379a10781f8a0288fe Mon Sep 17 00:00:00 2001 From: Gail Badner Date: Fri, 26 Dec 2008 23:48:07 +0000 Subject: [PATCH] HHH-3675 - Limitations on Sybase ResultSet implementation cause unit test failures git-svn-id: https://svn.jboss.org/repos/hibernate/core/branches/Branch_3_2@15732 1b8cb986-b30d-0410-93ca-fae66ebed9b2 --- test/org/hibernate/test/stats/StatsTest.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/org/hibernate/test/stats/StatsTest.java b/test/org/hibernate/test/stats/StatsTest.java index 94d31e8432..2bd0ba4769 100644 --- a/test/org/hibernate/test/stats/StatsTest.java +++ b/test/org/hibernate/test/stats/StatsTest.java @@ -165,6 +165,11 @@ public class StatsTest extends FunctionalTestCase { // 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();