Merge pull request #458 from GeertJohan/patch-1

Fix undefined identifiers in example
pull/461/head
Jack Christensen 2018-09-22 07:21:15 -05:00 committed by GitHub
commit 1b754b5f70
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

2
doc.go
View File

@ -121,7 +121,7 @@ database/sql. The second is to use a pointer to a pointer.
var foo pgtype.Varchar
var bar *string
err := conn.QueryRow("select foo, bar from widgets where id=$1", 42).Scan(&a, &b)
err := conn.QueryRow("select foo, bar from widgets where id=$1", 42).Scan(&foo, &bar)
if err != nil {
return err
}