Skip to content

Commit

Permalink
fix PersistTimestampSpec for h2
Browse files Browse the repository at this point in the history
  • Loading branch information
sebastian-alfers committed Dec 18, 2023
1 parent 7f7454e commit b2b3d6f
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -80,7 +80,11 @@ class PersistTimestampSpec
Row(
pid = row.get("persistence_id", classOf[String]),
seqNr = row.get[java.lang.Long]("seq_nr", classOf[java.lang.Long]),
dbTimestamp = row.get("db_timestamp", classOf[LocalDateTime]).atZone(ZoneId.systemDefault()).toInstant,
dbTimestamp = if (settings.dialectName == "sqlserver") {
row.get("db_timestamp", classOf[LocalDateTime]).atZone(ZoneId.systemDefault()).toInstant
} else {
row.get("db_timestamp", classOf[Instant])
},
event)
})
.futureValue
Expand Down

0 comments on commit b2b3d6f

Please sign in to comment.