mirror of
https://github.com/ent/ent.git
synced 2026-05-04 16:40:55 +03:00
dialect/sql/schemma: ignore pgtime default value on scanning (#468)
This commit is contained in:
@@ -230,7 +230,7 @@ func (d *Postgres) scanColumn(c *Column, rows *sql.Rows) error {
|
||||
c.Type = field.TypeUUID
|
||||
}
|
||||
switch {
|
||||
case !defaults.Valid:
|
||||
case !defaults.Valid || c.Type == field.TypeTime:
|
||||
return nil
|
||||
case strings.Contains(defaults.String, "::"):
|
||||
parts := strings.Split(defaults.String, "::")
|
||||
|
||||
Reference in New Issue
Block a user