Skip to content

Commit

Permalink
BUG FIX: null timestamps
Browse files Browse the repository at this point in the history
  • Loading branch information
hohonuuli committed Nov 2, 2024
1 parent d885eed commit f9a1e16
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ object QueryResults:
for i <- 1 to numColumns do
if isNew then results += ListBuffer[Any]()
val column = results(i - 1)
if timestampColumnIdx.contains(i - 1) then column += rs.getTimestamp(i, UtcCalendar).toInstant
if timestampColumnIdx.contains(i - 1) then column += Option(rs.getTimestamp(i, UtcCalendar)).map(_.toInstant).orNull
else column += rs.getObject(i)
isNew = false
val columnData = results.result().map(_.result()) // Turn into immutable
Expand Down

0 comments on commit f9a1e16

Please sign in to comment.