GORM Playground Link
https://github.com/go-gorm/playground/pull/1
Description
boolean value can't conver to correct value when it's default is true but I want to insert false.
sp.WithContext(context.Background()).Create(&model.SmokePerson{Name: "", HolidayNum: 1, WorkdayNum: 3, CanWork: false, Weight: 0, GroupName: consts.SmokeGroupCon})
gorm.io/gen@v0.3.4/do.go:552\n[8.840ms] [rows:1] INSERT INTO \"smoke_persons\" (\"name\",\"weight\",\"workday_num\",\"holiday_num\",\"current_work\",\"can_work\",\"group_name\",\"deleted_time\") VALUES ('',0,3,1,NULL,true,'',NULL) RETURNING \"id\",\"last_work_time\",\"updated_time\",\"created_time\""
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: zeroguar
it may cause by https://github.com/go-gorm/gorm/blob/e57e5d8884d801caa4ce0307bcd081f7e889e514/schema/field.go#L447
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨
Comment From: github-actions[bot]
The issue has been automatically marked as stale as it missing playground pull request link, which is important to help others understand your issue effectively and make sure the issue hasn't been fixed on latest master, checkout https://github.com/go-gorm/playground for details. it will be closed in 30 days if no further activity occurs. if you are asking question, please use the Question template, most likely your question already answered https://github.com/go-gorm/gorm/issues or described in the document https://gorm.io ✨ Search Before Asking ✨