Skip to content

Conversation

phongphan
Copy link

Explain your user case and expected results

When using CreateInBatches with ON CONFLICT in conjunction with RETURNING.

  1. With gorm:"unique", the application will panic with reflect: reflect.Value.SetLen using unaddressable value.
  2. Without gorm:"unique" the statement will run successfully, but the ID is not updated to the input object.

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

Successfully merging this pull request may close these issues.

1 participant