2
0

Add missing pgx.Identifier to CopyFrom example

This commit is contained in:
Christian Rocha
2017-06-30 12:52:24 -04:00
parent c4efaf30a2
commit e3248f161e
+1 -1
View File
@@ -225,7 +225,7 @@ implement CopyFromSource to avoid buffering the entire data set in memory.
}
copyCount, err := conn.CopyFrom(
"people",
pgx.Identifier{"people"},
[]string{"first_name", "last_name", "age"},
pgx.CopyFromRows(rows),
)