From e237b5367993f7503f342267c497490b1963827d Mon Sep 17 00:00:00 2001 From: Otto Bretz Date: Mon, 27 May 2013 10:41:42 +0200 Subject: [PATCH] Timestamp support Tested with PostgreSQL --- dialect.go | 2 ++ 1 file changed, 2 insertions(+) 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 {