From d60322978a69b444f323ec9fcabf28bd1a25f66c Mon Sep 17 00:00:00 2001 From: Paolo Galeone Date: Wed, 17 Dec 2014 22:41:00 +0100 Subject: [PATCH] Fixes https://github.com/jinzhu/gorm/issues/317 --- postgres.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres.go b/postgres.go index 1cc8507d..b2624448 100644 --- a/postgres.go +++ b/postgres.go @@ -66,7 +66,7 @@ func (s *postgres) PrimaryKeyTag(value reflect.Value, size int) string { } func (s *postgres) ReturningStr(tableName, key string) string { - return fmt.Sprintf("RETURNING %v.%v", tableName, key) + return fmt.Sprintf("RETURNING \"%v\".%v", tableName, key) } func (s *postgres) SelectFromDummyTable() string {