Skip to content

Conversation

artlo
Copy link
Contributor

@artlo artlo commented Aug 29, 2023

  • Do only one thing
  • Non breaking API changes
  • Tested

What did this pull request do?

Fixing incorrect default value in auto generated models.

User Case Description

If DB column definition has column name text default value '' then the generated model will have the Go tag: default:"''::text" and value ''::text will be written to DB column as default value.

@jinzhu jinzhu merged commit b04900e into go-gorm:master Oct 8, 2023
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.

2 participants