akka-persistence-r2dbc icon indicating copy to clipboard operation
akka-persistence-r2dbc copied to clipboard

H2 should not be selecting db timestamp

Open johanandren opened this issue 2 years ago • 0 comments

No point since we are anyway in-process, in H2Dialect we do:

  override def adaptSettings(settings: R2dbcSettings): R2dbcSettings = {
    val res = settings
      // app timestamp is db timestamp because same process
      .withUseAppTimestamp(true)
      .withDbTimestampMonotonicIncreasing(true)
    res
  }

But when looking into logs for a test using projections I still see repeated /*SQL #:1*/SELECT CURRENT_TIMESTAMP; so the adapted settings is not used/not applied somewhere.

johanandren avatar Sep 11 '23 09:09 johanandren