You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
The solution here is to split the insert operation into two bulk inserts; one where id is present on all items and another where id is absent on all items. But this seems like a hack.
The text was updated successfully, but these errors were encountered:
Bug report
Describe the bug
Having a table that looks like this
When inserting new items in bulk with different fields (
id
only present on one item)Both items should be inserted; one with the provided
id
and one with a random UUID asid
.However I get this error
It seems that
gen_random_uuid
is ignored.To Reproduce
Follow the steps above.
Expected behavior
Both items should be inserted; one with the provided
id
and one with a random UUID asid
.Additional context
Both this
and this works
The solution here is to split the insert operation into two bulk inserts; one where
id
is present on all items and another whereid
is absent on all items. But this seems like a hack.The text was updated successfully, but these errors were encountered: