[OPENJPA-2713] Allow for OffsetTime and OffsetDateTime query parameters (#94)

This commit is contained in:
Francesco Chicchiriccò 2022-03-07 17:54:14 +01:00 committed by GitHub
parent 68b77e1ae7
commit f228d2c259
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -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);