Skip to content

Commit

Permalink
Timestamp support
Browse files Browse the repository at this point in the history
Tested with PostgreSQL
  • Loading branch information
ottob committed May 27, 2013
1 parent d4c4bce commit e237b53
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e237b53

Please sign in to comment.