[jOOQ/jOOQ#14699] PostgreSQL interval parser handle fractional seconds with interval style iso_8601
This commit is contained in:
parent
5bce422978
commit
42e8590d9f
@ -95,13 +95,12 @@ public class PGInterval extends PGobject {
|
||||
for (int i = 0; i < timeValue.length(); i++) {
|
||||
int lookAhead = lookAhead(timeValue, i, "HMS");
|
||||
if (lookAhead > 0) {
|
||||
number = Integer.parseInt(timeValue.substring(i, lookAhead));
|
||||
if (timeValue.charAt(lookAhead) == 'H') {
|
||||
setHours(number);
|
||||
setHours(Integer.parseInt(timeValue.substring(i, lookAhead)));
|
||||
} else if (timeValue.charAt(lookAhead) == 'M') {
|
||||
setMinutes(number);
|
||||
setMinutes(Integer.parseInt(timeValue.substring(i, lookAhead)));
|
||||
} else if (timeValue.charAt(lookAhead) == 'S') {
|
||||
setSeconds(number);
|
||||
setSeconds(Double.parseDouble(timeValue.substring(i, lookAhead)));
|
||||
}
|
||||
i = lookAhead;
|
||||
}
|
||||
|
||||
2
pom.xml
2
pom.xml
@ -27,7 +27,7 @@
|
||||
<hsqldb.version>2.7.1</hsqldb.version>
|
||||
|
||||
<!-- JDBC drivers for jOOQ-xyz-extensions modules and vendor-specific API access -->
|
||||
<postgres.version>42.5.3</postgres.version>
|
||||
<postgres.version>42.5.4</postgres.version>
|
||||
<sqlserver.version>11.2.1.jre11</sqlserver.version>
|
||||
<oracle.version>21.7.0.0</oracle.version>
|
||||
|
||||
|
||||
Loading…
Reference in New Issue
Block a user