dialect/sql/schema: add postgres type 'timestamp without time zone' to the scan column (#949)

This commit is contained in:
ssoor
2020-11-15 01:52:37 +08:00
committed by GitHub
parent 45020a877b
commit d5b69da9e0

View File

@@ -241,7 +241,7 @@ func (d *Postgres) scanColumn(c *Column, rows *sql.Rows) error {
c.Size = maxCharSize + 1
case "character", "character varying":
c.Type = field.TypeString
case "date", "time", "timestamp", "timestamp with time zone":
case "date", "time", "timestamp", "timestamp with time zone", "timestamp without time zone":
c.Type = field.TypeTime
case "bytea":
c.Type = field.TypeBytes