From d5b69da9e0d42a5f8e7f5f145ceae2d61c87950b Mon Sep 17 00:00:00 2001 From: ssoor Date: Sun, 15 Nov 2020 01:52:37 +0800 Subject: [PATCH] dialect/sql/schema: add postgres type 'timestamp without time zone' to the scan column (#949) --- dialect/sql/schema/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialect/sql/schema/postgres.go b/dialect/sql/schema/postgres.go index 4979f49a8..f130c4df3 100644 --- a/dialect/sql/schema/postgres.go +++ b/dialect/sql/schema/postgres.go @@ -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