Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

H2 should not be selecting db timestamp #454

Open
johanandren opened this issue Sep 11, 2023 · 0 comments
Open

H2 should not be selecting db timestamp #454

johanandren opened this issue Sep 11, 2023 · 0 comments
Labels

Comments

@johanandren
Copy link
Member

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.

@patriknw patriknw added the h2 label Feb 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants