Add more tests to insert template tests

* Add helpers to assist with template tests
* Change null []byte from string to []byte
This commit is contained in:
Patrick O'brien 2016-07-06 16:02:35 +10:00
parent d154617e95
commit 7a0b84848f
14 changed files with 309 additions and 14 deletions
bdb/drivers

View file

@ -224,6 +224,8 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
c.Type = "null.Float32"
case "bit", "bit varying", "character", "character varying", "cidr", "inet", "json", "macaddr", "text", "uuid", "xml":
c.Type = "null.String"
case "bytea":
c.Type = "[]byte"
case "boolean":
c.Type = "null.Bool"
case "date", "interval", "time", "timestamp without time zone", "timestamp with time zone":