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
This commit is contained in:
parent
a5aa738c95
commit
c89d869ffc
|
@ -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