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:
parent
d154617e95
commit
7a0b84848f
14 changed files with 309 additions and 14 deletions
bdb/drivers
|
@ -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":
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue