From 5d9d75f1579e6bd1d07f5823b3c808c5bb520836 Mon Sep 17 00:00:00 2001 From: Otto Bretz Date: Tue, 5 Mar 2013 19:06:03 +0100 Subject: [PATCH] Bigserial support Tested with PostgreSQL --- dialect.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialect.go b/dialect.go index a463aad..e641035 100644 --- a/dialect.go +++ b/dialect.go @@ -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: