You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@openjpa.apache.org by il...@apache.org on 2022/03/07 16:54:22 UTC
[openjpa] branch master updated: [OPENJPA-2713] Allow for OffsetTime and OffsetDateTime query parameters (#94)
This is an automated email from the ASF dual-hosted git repository.
ilgrosso 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 f228d2c [OPENJPA-2713] Allow for OffsetTime and OffsetDateTime query parameters (#94)
f228d2c is described below
commit f228d2c259f23fd17a328f719f2908cdc9ff6f52
Author: Francesco Chicchiriccò <il...@users.noreply.github.com>
AuthorDate: Mon Mar 7 17:54:14 2022 +0100
[OPENJPA-2713] Allow for OffsetTime and OffsetDateTime query parameters (#94)
---
.../src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
index 8ccaf77..025306b 100644
--- a/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
+++ b/openjpa-jdbc/src/main/java/org/apache/openjpa/jdbc/sql/DBDictionary.java
@@ -1723,6 +1723,12 @@ public class DBDictionary
else if (val instanceof LocalDateTime) {
setLocalDateTime(stmnt, idx, (LocalDateTime) val, col);
}
+ else if (val instanceof OffsetTime) {
+ setOffsetTime(stmnt, idx, (OffsetTime) val, col);
+ }
+ else if (val instanceof OffsetDateTime) {
+ setOffsetDateTime(stmnt, idx, (OffsetDateTime) val, col);
+ }
else if (val instanceof Reader)
setCharacterStream(stmnt, idx, (Reader) val,
(sized == null) ? 0 : sized.size, col);