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:
Gail Badner 2008-12-26 23:48:07 +00:00
parent a5aa738c95
commit c89d869ffc
1 changed files with 5 additions and 0 deletions

View File

@ -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();