Author: brmeyer
Date: 2013-06-29 12:15:18 -0400 (Sat, 29 Jun 2013)
New Revision: 21134
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/exception/SQLExceptionConversionTest.java
Log:
JBPAPP-10779 SQLExceptionConversionTest.testIntegrityViolation fails on 3.3.2, JDK7, and
Postgres 9.1
Modified:
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/exception/SQLExceptionConversionTest.java
===================================================================
---
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/exception/SQLExceptionConversionTest.java 2013-06-27
18:00:57 UTC (rev 21133)
+++
core/branches/Branch_3_3_2_GA_CP/testsuite/src/test/java/org/hibernate/test/exception/SQLExceptionConversionTest.java 2013-06-29
16:15:18 UTC (rev 21134)
@@ -85,6 +85,7 @@
SQLExceptionConverter converter = getDialect().buildSQLExceptionConverter();
Session session = openSession();
+ session.beginTransaction();
Connection connection = session.connection();
// prepare/execute a query against a non-existent table
@@ -109,6 +110,7 @@
}
}
+ session.getTransaction().rollback();
session.close();
}
}
Show replies by date