[英]jOOQ: Error parsing Oracle TIMESTAMP WITH TIME ZONE
I am having an issue parsing Oracle (11.2.0.4.0) TIMESTAMP(6) WITH TIME ZONE
values to OffsetDateTime
: 我有一个问题解析Oracle(11.2.0.4.0) TIMESTAMP(6) WITH TIME ZONE
值到OffsetDateTime
:
java.time.format.DateTimeParseException: Text '2014-03-28T15:11:49.508918 -4:00' could not be parsed at index 26
java.time.format.DateTimeFormatter.parseResolved0(Unknown Source)
java.time.format.DateTimeFormatter.parse(Unknown Source)
java.time.OffsetDateTime.parse(Unknown Source)
java.time.OffsetDateTime.parse(Unknown Source)
org.jooq.impl.DefaultBinding.offsetDateTime(DefaultBinding.java:1539)
I think this is the issue described here: https://github.com/jOOQ/jOOQ/issues/4965 我认为这是这里描述的问题: https : //github.com/jOOQ/jOOQ/issues/4965
The not-quite-iso8601 value produced by Oracle ( 2014-03-28T15:11:49.508918 -4:00
) actually has two problems that are rejected by OffsetDateTime.parse
: Oracle( 2014-03-28T15:11:49.508918 -4:00
)产生的不太完全iso8601值实际上有两个被OffsetDateTime.parse
拒绝的OffsetDateTime.parse
:
Is there a workaround, until the fix arrives (in 3.9)? 是否有解决方法,直到修复程序到达(在3.9中)?
jOOQ version 3.8 does not yet fully support TIMESTAMP WITH TIME ZONE
data types (which would map to Java 8's JSR 310 types). jOOQ版本3.8尚未完全支持TIMESTAMP WITH TIME ZONE
数据类型(将映射到Java 8的JSR 310类型)。 For the time being, you will have to implement your own support via a data type binding as explained here in the manual: 目前,您必须通过数据类型绑定实现自己的支持,如手册中所述:
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.