Merge pull request #22 from siesta/master

Postgresql Dialect: fix primary tag for int types
This commit is contained in:
Jinzhu 2013-12-02 01:44:48 -08:00
commit 2b36ccddd0
1 changed files with 1 additions and 1 deletions

View File

@ -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: