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: fields with type Option<T> are always nullable #1257

Merged
merged 1 commit into from
Dec 1, 2022

Conversation

billy1624
Copy link
Member

@billy1624 billy1624 commented Nov 28, 2022

Bug Fixes

  • DeriveEnriryModel derive macro: when parsing field type, always treat field with Option<T> as nullable column. Even it has #[sea_orm(column_type = "Decimal(Some((11, 10)))")] specified.

@billy1624 billy1624 self-assigned this Nov 28, 2022
@billy1624 billy1624 mentioned this pull request Nov 28, 2022
1 task
@billy1624 billy1624 marked this pull request as ready for review November 28, 2022 11:10
@billy1624 billy1624 merged commit 2389a4c into master Dec 1, 2022
@billy1624 billy1624 deleted the fix-option-field-always-nullable branch December 1, 2022 04:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Archived in project
Development

Successfully merging this pull request may close these issues.

1 participant