From 2509082c0e66e27ac530370f3312db69cea1a8ee Mon Sep 17 00:00:00 2001 From: Christian Rocha Date: Fri, 30 Jun 2017 12:52:24 -0400 Subject: [PATCH] Add missing `pgx.Identifier` to `CopyFrom` example --- doc.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/doc.go b/doc.go index a9b9e461..c909cf18 100644 --- a/doc.go +++ b/doc.go @@ -206,8 +206,8 @@ implement CopyToSource to avoid buffering the entire data set in memory. {"Jane", "Doe", int32(29)}, } - copyCount, err := conn.CopyTo( - "people", + copyCount, err := conn.CopyFrom( + pgx.Identifier{"people"}, []string{"first_name", "last_name", "age"}, pgx.CopyToRows(rows), )