HHH-11434 : Fix tests to work with pre-5.2

This commit is contained in:
Gail Badner 2017-02-23 13:50:19 -08:00
parent 1660c520ba
commit 4b23a68a8c
1 changed files with 1 additions and 1 deletions

View File

@ -487,7 +487,7 @@ public class BaseNonConfigCoreFunctionalTestCase extends BaseUnitTestCase {
s.createQuery( "delete from java.lang.Object" ).executeUpdate();
s.getTransaction().commit();
}
catch ( Throwable e ) {
catch ( Exception e ) {
if ( s.getTransaction().getStatus().canRollback() ) {
s.getTransaction().rollback();
}