dialect/sql/schema: support time with time zone and time without time zone (#2257)

* dialect/sql/schema: support `time with time zone` and `time without time zone`

* fix test

* fix test
This commit is contained in:
s-takehana
2022-01-12 21:33:26 +09:00
committed by GitHub
parent 3f6121b013
commit 0fd6143979
2 changed files with 3 additions and 3 deletions

View File

@@ -272,7 +272,7 @@ func (d *Postgres) scanColumn(c *Column, rows *sql.Rows) error {
schemaType := fmt.Sprintf("varchar(%d)", characterMaximumLen.Int64)
c.SchemaType = map[string]string{dialect.Postgres: schemaType}
}
case "date", "time", "timestamp", "timestamp with time zone", "timestamp without time zone":
case "date", "time with time zone", "time without time zone", "timestamp with time zone", "timestamp without time zone":
c.Type = field.TypeTime
case "bytea":
c.Type = field.TypeBytes