Fix hstore naming

This commit is contained in:
Patrick O'brien 2016-09-15 16:58:24 +10:00
parent c249cf49d0
commit 40ce5838f3
3 changed files with 13 additions and 14 deletions
bdb/drivers

View file

@ -307,7 +307,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
c.DBType = c.DBType + *c.ArrType
case "USER-DEFINED":
if c.UDTName == "hstore" {
c.Type = "types.Hstore"
c.Type = "types.HStore"
c.DBType = "hstore"
} else {
c.Type = "string"
@ -344,7 +344,7 @@ func (p *PostgresDriver) TranslateColumnType(c bdb.Column) bdb.Column {
c.DBType = c.DBType + *c.ArrType
case "USER-DEFINED":
if c.UDTName == "hstore" {
c.Type = "types.Hstore"
c.Type = "types.HStore"
c.DBType = "hstore"
} else {
c.Type = "string"