postgres
postgres copied to clipboard
distinguish between schema.Time and tag time
- [x] Do only one thing
- [x] Non breaking API changes
- [ ] Tested
What did this pull request do?
fix https://github.com/go-gorm/gorm/issues/6033
User Case Description
type Test struct {
Date time.Time `gorm:"type:date"`
Time time.Time `gorm:"type:time"`
DefaultDateTime time.Time
}
CREATE TABLE `tests` (`date` date,`time` time,`default_date_time` datetime)