From 93fdc2dbc34f322cd50224eabe69bba5cb52d6a9 Mon Sep 17 00:00:00 2001 From: Cihangir Date: Sun, 1 Dec 2013 21:26:19 -0800 Subject: [PATCH] Postgresql Dialet: fix primary tag for int types There is not `sehrial`type in postgresql --- dialect/postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dialect/postgres.go b/dialect/postgres.go index c31eb7e1..a225ae02 100644 --- a/dialect/postgres.go +++ b/dialect/postgres.go @@ -45,7 +45,7 @@ func (d *postgres) SqlTag(column interface{}, size int) string { func (s *postgres) PrimaryKeyTag(column interface{}, size int) string { switch column.(type) { case int, int8, int16, int32, uint, uint8, uint16, uint32: - return "sehrial" + return "serial" case int64, uint64: return "bigserial" default: