postgres icon indicating copy to clipboard operation
postgres copied to clipboard

distinguish between schema.Time and tag time

Open black-06 opened this issue 2 years ago • 0 comments

  • [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)

black-06 avatar Feb 20 '23 03:02 black-06