Fix hstore naming
This commit is contained in:
parent
c249cf49d0
commit
40ce5838f3
3 changed files with 13 additions and 14 deletions
bdb/drivers
|
@ -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"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue