HHH-3675 - Limitations on Sybase ResultSet implementation cause unit test failures

git-svn-id: https://svn.jboss.org/repos/hibernate/core/trunk@15734 1b8cb986-b30d-0410-93ca-fae66ebed9b2
This commit is contained in:
Gail Badner 2008-12-26 23:57:29 +00:00
parent 1ff65ff30e
commit 7e8b6a75bd
1 changed files with 6 additions and 1 deletions

View File

@ -1,4 +1,4 @@
//$Id: StatsTest.java 10977 2006-12-12 23:28:04Z steve.ebersole@jboss.com $ //$Id: StatsTest.java 15731 2008-12-26 23:42:56Z gbadner $
package org.hibernate.test.stats; package org.hibernate.test.stats;
import java.util.HashSet; import java.util.HashSet;
@ -165,6 +165,11 @@ public class StatsTest extends FunctionalTestCase {
// same deal with scroll()... // same deal with scroll()...
assertEquals( "unexpected execution count", 3, continentStats.getExecutionCount() ); assertEquals( "unexpected execution count", 3, continentStats.getExecutionCount() );
assertEquals( "unexpected row count", results, continentStats.getExecutionRowCount() ); 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(); scrollableResults.close();
tx.commit(); tx.commit();
s.close(); s.close();