zio / zio-quill

Compile-time Language Integrated Queries for Scala
https://zio.dev/zio-quill
Apache License 2.0
2.14k stars 347 forks source link

Batch upsert leads to run-time crash #2986

Closed mberndt123 closed 5 months ago

mberndt123 commented 5 months ago

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 commented 5 months ago

duplicate of https://github.com/zio/zio-protoquill/issues/250