Merge branch 'master' of github.com:nullbio/sqlboiler

This commit is contained in:
Patrick O'brien 2016-08-01 17:42:23 +10:00
commit 65b80ddc13

View file

@ -248,7 +248,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
case "bigint", "bigserial":
c.Type = "null.Int64"
case "integer", "serial":
c.Type = "null.Int32"
c.Type = "null.Int"
case "smallint", "smallserial":
c.Type = "null.Int16"
case "decimal", "numeric", "double precision", "money":
@ -271,7 +271,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
case "bigint", "bigserial":
c.Type = "int64"
case "integer", "serial":
c.Type = "int32"
c.Type = "int"
case "smallint", "smallserial":
c.Type = "int16"
case "decimal", "numeric", "double precision", "money":