diff --git a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java index d24688dd2..c29a43385 100644 --- a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java +++ b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/datacache/TestDataCacheOptimisticLockRecovery.java @@ -53,7 +53,7 @@ public class TestDataCacheOptimisticLockRecovery EntityManager em = emf.createEntityManager(); em.getTransaction().begin(); - em.createQuery("delete from OptimisticLockInstance"); + em.createQuery("delete from OptimisticLockInstance").executeUpdate(); OptimisticLockInstance oli = new OptimisticLockInstance("foo"); try {