zio-quill icon indicating copy to clipboard operation
zio-quill copied to clipboard

Multiple onConflictUpdate's break bulk inserting

Open Yomanz opened this issue 2 years ago • 0 comments

Version: 4.4.1 Module: quill-jasync-postgres Database: PostgreSQL

Expected behavior

It will allow you to bulk insert with more than 1 onConflictUpdate

Actual behavior

It breaks if you supply more than 1 onConflictUpdate

Steps to reproduce the behavior

Doesn't seem to be reproducable with a mirror context but here is the code: https://scastie.scala-lang.org/Vqb8nwbvQwWZuoFKv6pHnA

It works if you only pass 1 onConflictUpdate, but when you pass multiple it breaks

Workaround

Disable bulk insert but that's not really a workaround.

Yomanz avatar Dec 07 '22 16:12 Yomanz