HHH-11434 : Fix tests to work with pre-5.2
This commit is contained in:
parent
1660c520ba
commit
4b23a68a8c
|
@ -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();
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue