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

fix: default value with typecast and tests #211

Merged
merged 1 commit into from Oct 10, 2023
Merged

fix: default value with typecast and tests #211

merged 1 commit into from Oct 10, 2023

Conversation

MrChaos1993
Copy link
Contributor

@MrChaos1993 MrChaos1993 commented Aug 31, 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

The current version(master) ignore default value if it contains type cast.

also will fix following PR:
#210
#201

related issues:
go-gorm/gorm#6543

related PR:
#143

@MrChaos1993 MrChaos1993 changed the title fix: default value with typecast fix: default value with typecast + tests Aug 31, 2023
@MrChaos1993 MrChaos1993 changed the title fix: default value with typecast + tests fix: default value with typecast and tests Oct 5, 2023
@jinzhu
Copy link
Member

jinzhu commented Oct 8, 2023

Sorry for the confliction due to merge PR #210, can you fix them, thank you.

@jinzhu jinzhu merged commit 89bd876 into go-gorm:master Oct 10, 2023
1 check passed
PuneetPunamiya pushed a commit to PuneetPunamiya/postgres that referenced this pull request Jan 17, 2024
Co-authored-by: Aleksandr Tuliakov <tuliakov@basetrack.net>
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.

None yet

3 participants