diff --git a/dialect.go b/dialect.go index 022bf63a..4dfb685b 100644 --- a/dialect.go +++ b/dialect.go @@ -160,6 +160,8 @@ func (d PostgresDialect) ToSqlType(val reflect.Type, maxsize int, isAutoIncr boo return "smallint" case "NullableBytes": return "bytea" + case "Time": + return "timestamp" } if maxsize < 1 {