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 {
3939 private static class IntervalConverter implements Converter <YearToSecond , Duration > {
4040 @ Override
4141 public Duration from (YearToSecond databaseObject ) {
42+ if (databaseObject == null ) {
43+ return null ;
44+ }
4245 return databaseObject .toDuration ();
4346 }
4447
Original file line number Diff line number Diff line change @@ -39,6 +39,9 @@ public void get(BindingGetResultSetContext<Instant> ctx) throws SQLException {
3939 private static class TimestampConverter implements Converter <LocalDateTime , Instant > {
4040 @ Override
4141 public Instant from (LocalDateTime databaseObject ) {
42+ if (databaseObject == null ) {
43+ return null ;
44+ }
4245 return databaseObject .toInstant (ZoneOffset .UTC );
4346 }
4447
You can’t perform that action at this time.
0 commit comments