Skip to content

Commit

Permalink
Bigserial support
Browse files Browse the repository at this point in the history
Tested with PostgreSQL
  • Loading branch information
ottob committed Mar 5, 2013
1 parent 8874be3 commit 5d9d75f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion dialect.go
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ func (d PostgresDialect) ToSqlType(val reflect.Type, maxsize int, isAutoIncr boo
return "integer"
case reflect.Int64:
if isAutoIncr {
return "serial"
return "bigserial"
}
return "bigint"
case reflect.Float64, reflect.Float32:
Expand Down

0 comments on commit 5d9d75f

Please sign in to comment.