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:
parent
1ff65ff30e
commit
7e8b6a75bd
|
@ -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;
|
||||
|
||||
import java.util.HashSet;
|
||||
|
@ -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();
|
||||
|
|
Loading…
Reference in New Issue