This is an automated email from the ASF dual-hosted git repository.
struberg pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/openjpa.git
The following commit(s) were added to refs/heads/master by this push:
new 8f96a5b OPENJPA-2851 fix CURRENT_DATE with LocalDate and LocalDateTime
8f96a5b is described below
commit 8f96a5bd798c8bbdbc03bf5a9551b1da6ef68370
Author: Mark Struberg <[email protected]>
AuthorDate: Thu Apr 1 23:30:59 2021 +0200
OPENJPA-2851 fix CURRENT_DATE with LocalDate and LocalDateTime
bug in unit test
---
.../java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
index 8f72e2a..7ad8d49 100644
---
a/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
+++
b/openjpa-persistence-jdbc/src/test/java/org/apache/openjpa/persistence/simple/TestJava8TimeTypes.java
@@ -192,7 +192,7 @@ public class TestJava8TimeTypes extends SingleEMFTestCase {
public void testCurrentDateLocalDateTime() {
EntityManager em = emf.createEntityManager();
final TypedQuery<Java8TimeTypes> qry
- = em.createQuery("select j from Java8TimeTypes AS j where
j.localDateTimeField < CURRENT_DATE", Java8TimeTypes.class);
+ = em.createQuery("select j from Java8TimeTypes AS j where
j.localDateTimeField < CURRENT_TIMESTAMP", Java8TimeTypes.class);
final List<Java8TimeTypes> times = qry.getResultList();
assertNotNull(times);
assertTrue(!times.isEmpty());