Fix error when deploying to google app engine

github.com/jinzhu/gorm/postgres.go:103:21: composite struct literal database/sql.NullString with unkeyed fields
This commit is contained in:
Jimmy Wahlberg 2014-07-10 16:15:39 +02:00
parent bdaecff30d
commit d857685771
1 changed files with 1 additions and 1 deletions

View File

@ -100,7 +100,7 @@ func (h Hstore) Value() (driver.Value, error) {
} }
for key, value := range h { for key, value := range h {
hstore.Map[key] = sql.NullString{*value, true} hstore.Map[key] = sql.NullString{String: *value, Valid: true}
} }
return hstore.Value() return hstore.Value()
} }