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

Demonstate a ** pointer failing for FirstOrCreate #296

Conversation

cameron-dunn-silo
Copy link

If the conditions/where param for FirstOrCreate is a double pointer
no record will be created. This is unexpected because:

  • No error is returned
  • The out paramater is populated as if the record was created
  • Standard Create seems to allow the double pointer
  • GORM V1 allowed the double pointer

Explain your user case and expected results

If the conditions/where param for FirstOrCreate is a double pointer
no record will be created. This is unexpected because:
* No error is returned
* The out paramater is populated as if the record was created
* Standard Create seems to allow the double pointer
* GORM V1 allowed the double pointer
@cameron-dunn-silo cameron-dunn-silo deleted the first-or-create-double-pointer-to-push branch March 10, 2021 21:36
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