Przeglądaj źródła

Fixes https://github.com/jinzhu/gorm/issues/317

Paolo Galeone 9 lat temu
rodzic
commit
d60322978a
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      postgres.go

+ 1 - 1
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 {