From 1cb57741cf1e4b849f9a4d0b6a8dfacd3455e03b Mon Sep 17 00:00:00 2001 From: Aaron L Date: Sun, 31 Jul 2016 22:50:33 -0700 Subject: [PATCH] Change default ints to int not int32 - THANKS PATRICK --- bdb/drivers/postgres.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/bdb/drivers/postgres.go b/bdb/drivers/postgres.go index 7fbbdc5..2ac30a8 100644 --- a/bdb/drivers/postgres.go +++ b/bdb/drivers/postgres.go @@ -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":