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

Batch upsert leads to run-time crash #2986

Closed
mberndt123 opened this issue Feb 4, 2024 · 1 comment
Closed

Batch upsert leads to run-time crash #2986

mberndt123 opened this issue Feb 4, 2024 · 1 comment

Comments

@mberndt123
Copy link

mberndt123 commented Feb 4, 2024

Version: (e.g. 4.8.1)

Hey there,

I have a very strange problem.
Here is some (simplified) Scala 2.13 code that I recently wanted to port to Scala 3.
https://scastie.scala-lang.org/pgbGGOK6TC2t0lUR3AKV5Q
It compiles fine, and while I can't run it in Scastie (no Postgres available), I've tried it locally and it works.

However when I change scalaVersion to 3.3.1 it no longer compiles, see here:
https://scastie.scala-lang.org/MMwQdJbjRMyHbE0ovf7alw
It also fails to compile when I leave scalaVersion on 2.13 and use an SqlMirrorContext rather than a PostgresJdbcContext:
https://scastie.scala-lang.org/svaVZIl9TZGUqV4UlfCmig

I don't know how to do batch upserts on Scala 3 at this point.

@mberndt123
Copy link
Author

duplicate of zio/zio-protoquill#250

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant