File tree Expand file tree Collapse file tree 2 files changed +6
-0
lines changed
jooq-dialect/src/main/java/tech/ydb/jooq/binding Expand file tree Collapse file tree 2 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ public void get(BindingGetResultSetContext<Duration> ctx) throws SQLException {
39
39
private static class IntervalConverter implements Converter <YearToSecond , Duration > {
40
40
@ Override
41
41
public Duration from (YearToSecond databaseObject ) {
42
+ if (databaseObject == null ) {
43
+ return null ;
44
+ }
42
45
return databaseObject .toDuration ();
43
46
}
44
47
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ public void get(BindingGetResultSetContext<Instant> ctx) throws SQLException {
39
39
private static class TimestampConverter implements Converter <LocalDateTime , Instant > {
40
40
@ Override
41
41
public Instant from (LocalDateTime databaseObject ) {
42
+ if (databaseObject == null ) {
43
+ return null ;
44
+ }
42
45
return databaseObject .toInstant (ZoneOffset .UTC );
43
46
}
44
47
You can’t perform that action at this time.
0 commit comments