From d857685771b13c2ca4e174534674d18158e89fac Mon Sep 17 00:00:00 2001 From: Jimmy Wahlberg Date: Thu, 10 Jul 2014 16:15:39 +0200 Subject: [PATCH] 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 --- postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres.go b/postgres.go index ef4c902d..14b4a329 100644 --- a/postgres.go +++ b/postgres.go @@ -100,7 +100,7 @@ func (h Hstore) Value() (driver.Value, error) { } for key, value := range h { - hstore.Map[key] = sql.NullString{*value, true} + hstore.Map[key] = sql.NullString{String: *value, Valid: true} } return hstore.Value() }